Class GenericPrivateMessageReactionEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.message.priv.GenericPrivateMessageEvent
-
- net.dv8tion.jda.api.events.message.priv.react.GenericPrivateMessageReactionEvent
-
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
PrivateMessageReactionAddEvent,PrivateMessageReactionRemoveEvent
public class GenericPrivateMessageReactionEvent extends GenericPrivateMessageEvent
Indicates that aMessageReactionwas added or removed.Can be used to detect when a message reaction is added or removed from a message.
-
-
Constructor Summary
Constructors Constructor Description GenericPrivateMessageReactionEvent(JDA api, long responseNumber, User user, MessageReaction reaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageReactiongetReaction()TheMessageReactionMessageReaction.ReactionEmotegetReactionEmote()UsergetUser()The reactingUser-
Methods inherited from class net.dv8tion.jda.api.events.message.priv.GenericPrivateMessageEvent
getChannel, getMessageId, getMessageIdLong
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Method Detail
-
getReaction
@Nonnull public MessageReaction getReaction()
TheMessageReaction- Returns:
- The message reaction
-
getReactionEmote
@Nonnull public MessageReaction.ReactionEmote getReactionEmote()
- Returns:
- The message reaction emote
-
-