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
Requirements
This event requires the
GUILD_MESSAGE_REACTIONS
intent to be enabled.
-
-
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 userUser
getUser()
The reactingUser
-
Methods inherited from class net.dv8tion.jda.api.events.message.guild.react.GenericGuildMessageReactionEvent
getReaction, getReactionEmote, getUserId, getUserIdLong, retrieveMember, retrieveMessage, retrieveUser
-
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
-
-
-
-
Constructor Detail
-
GuildMessageReactionAddEvent
public GuildMessageReactionAddEvent(@Nonnull JDA api, long responseNumber, @Nonnull Member member, @Nonnull MessageReaction reaction)
-
-
Method Detail
-
getUser
@Nonnull public User getUser()
The reactingUser
- Overrides:
getUser
in classGenericGuildMessageReactionEvent
- Returns:
- The reacting user
- See Also:
GenericGuildMessageReactionEvent.getUserIdLong()
-
getMember
@Nonnull public Member getMember()
TheMember
instance for the reacting user- Overrides:
getMember
in classGenericGuildMessageReactionEvent
- Returns:
- The member instance for the reacting user
-
-