MessageReactionAddEvent
, MessageReactionRemoveEvent
public 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, getResponseNumber
getChannel, getChannelType, getGroup, getGuild, getMessageId, getMessageIdLong, getPrivateChannel, getTextChannel, isFromType
public 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()
MessageReaction
public MessageReaction.ReactionEmote getReactionEmote()
ReactionEmote
of the reaction, shortcut for getReaction().getReactionEmote()