String code = emote.isEmote() ? emote.getName() + ":" + emote.getId() : MiscUtil.encodeUTF8(emote.getName());
if (ButtonUtil.isButtonMessage(event.getMessageId())) { for (ButtonGroup.Button button : ButtonUtil.getButtonGroup(event.getMessageId()).getButtons()) { if ((event.getReactionEmote() != null && event.getReactionEmote().isEmote() && event.getReactionEmote().getIdLong() == button.getEmoteId()) || (button.getUnicode() != null && event.getReactionEmote().getName().equals(button.getUnicode()))) {
protected static String getCode(MessageReaction reaction) { MessageReaction.ReactionEmote emote = reaction.getReactionEmote(); return emote.isEmote() ? emote.getName() + ":" + emote.getId() : MiscUtil.encodeUTF8(emote.getName()); }
@Override public String toString() { return "RE:" + (isEmote() ? getEmote() : getName() + "(" + id + ")"); } }