MessageReactionAddEvent, MessageReactionRemoveEventpublic class GenericMessageReactionEvent extends GenericMessageEvent
Can be used to detect both remove and add events.
| Constructor | Description |
|---|---|
GenericMessageReactionEvent(JDA api,
long responseNumber,
User user,
MessageReaction reaction) |
| Modifier and Type | Method | Description |
|---|---|---|
Member |
getMember() |
The
Member instance for the reacting user
or null if the reaction was not in a guild. |
MessageReaction |
getReaction() |
The
MessageReaction |
MessageReaction.ReactionEmote |
getReactionEmote() |
The
ReactionEmote
of the reaction, shortcut for getReaction().getReactionEmote() |
User |
getUser() |
The reacting
User |
getJDA, getResponseNumbergetChannel, getChannelType, getGroup, getGuild, getMessageId, getMessageIdLong, getPrivateChannel, getTextChannel, isFromTypepublic GenericMessageReactionEvent(JDA api, long responseNumber, User user, MessageReaction reaction)
public Member getMember()
Member instance for the reacting user
or null if the reaction was not in a guild.public MessageReaction getReaction()
MessageReactionpublic MessageReaction.ReactionEmote getReactionEmote()
ReactionEmote
of the reaction, shortcut for getReaction().getReactionEmote()