Class MessageReactionAddEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.message.GenericMessageEvent
net.dv8tion.jda.api.events.message.react.GenericMessageReactionEvent
net.dv8tion.jda.api.events.message.react.MessageReactionAddEvent
- All Implemented Interfaces:
- GenericEvent
Indicates that a user added a reaction to a message
 
This includes unicode and custom emoji
This includes unicode and custom emoji
Can be used to track when a user adds a reaction to a message
Requirements
 
This event requires at least one of the following intents (Will not fire at all if neither is enabled):
- GUILD_MESSAGE_REACTIONSto work in guild text channels
- DIRECT_MESSAGE_REACTIONSto work in private channels
- 
Constructor SummaryConstructorsConstructorDescriptionMessageReactionAddEvent(JDA api, long responseNumber, User user, Member member, MessageReaction reaction, long userId, long messageAuthorId) 
- 
Method SummaryModifier and TypeMethodDescriptionThe user id of the original message author.longThe user id of the original message author.Methods inherited from class net.dv8tion.jda.api.events.message.react.GenericMessageReactionEventgetEmoji, getMember, getReaction, getUser, getUserId, getUserIdLong, retrieveMember, retrieveMessage, retrieveUserMethods inherited from class net.dv8tion.jda.api.events.message.GenericMessageEventgetChannel, getChannelType, getGuild, getGuildChannel, getJumpUrl, getMessageId, getMessageIdLong, isFromGuild, isFromThread, isFromTypeMethods inherited from class net.dv8tion.jda.api.events.EventgetJDA, getRawData, getResponseNumber, toString
- 
Constructor Details- 
MessageReactionAddEvent
 
- 
- 
Method Details- 
getMessageAuthorIdThe user id of the original message author.
 This might be 0 for webhook messages.- Returns:
- The user id of the original message author.
 
- 
getMessageAuthorIdLongpublic long getMessageAuthorIdLong()The user id of the original message author.
 This might be 0 for webhook messages.- Returns:
- The user id of the original message author.
 
 
-