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 aMessageReactionwas 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 MembergetMember()TheMemberinstance for the reacting user
This might be missing if the user was not previously cached or the member was removed.UsergetUser()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:GenericGuildMessageReactionEventThe reactingUser
This might be missing if the user was not previously cached or the member was removed.- Overrides:
getUserin 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:GenericGuildMessageReactionEventTheMemberinstance for the reacting user
This might be missing if the user was not previously cached or the member was removed.- Overrides:
getMemberin classGenericGuildMessageReactionEvent- Returns:
- The member instance for the reacting user or null if this information is missing
-
-