Class GuildMessageReactionAddEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.message.guild.GenericGuildMessageEvent
-
- net.dv8tion.jda.api.events.message.guild.react.GenericGuildMessageReactionEvent
-
- net.dv8tion.jda.api.events.message.guild.react.GuildMessageReactionAddEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildMessageReactionAddEvent extends GenericGuildMessageReactionEvent
Indicates that aMessageReaction
was added to a Message in a GuildCan be used to detect when a reaction is added in a guild
-
-
Constructor Summary
Constructors Constructor Description GuildMessageReactionAddEvent(JDA api, long responseNumber, Member member, MessageReaction reaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Member
getMember()
TheMember
instance for the reacting user
This might be missing if the user was not previously cached or the member was removed.User
getUser()
The reactingUser
This might be missing if the user was not previously cached or the member was removed.-
Methods inherited from class net.dv8tion.jda.api.events.message.guild.react.GenericGuildMessageReactionEvent
getReaction, getReactionEmote, getUserId, getUserIdLong
-
Methods inherited from class net.dv8tion.jda.api.events.message.guild.GenericGuildMessageEvent
getChannel, getMessageId, getMessageIdLong
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Method Detail
-
getUser
@Nonnull public User getUser()
Description copied from class:GenericGuildMessageReactionEvent
The reactingUser
This might be missing if the user was not previously cached or the member was removed.- Overrides:
getUser
in classGenericGuildMessageReactionEvent
- Returns:
- The reacting user or null if this information is missing
- See Also:
GenericGuildMessageReactionEvent.getUserIdLong()
-
getMember
@Nonnull public Member getMember()
Description copied from class:GenericGuildMessageReactionEvent
TheMember
instance for the reacting user
This might be missing if the user was not previously cached or the member was removed.- Overrides:
getMember
in classGenericGuildMessageReactionEvent
- Returns:
- The member instance for the reacting user or null if this information is missing
-
-