Class GuildMessageReactionRemoveEmoteEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.message.guild.react.GuildMessageReactionRemoveEmoteEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildMessageReactionRemoveEmoteEvent extends GenericGuildEvent
Indicates that all reactions for a specific emoji/emote were removed by a moderator.Can be used to detect which emoji/emote was removed.
- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description GuildMessageReactionRemoveEmoteEvent(JDA api, long responseNumber, Guild guild, TextChannel channel, MessageReaction reaction, long messageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getChannel()
TheTextChannel
where the reaction happenedString
getMessageId()
The id of the affected messagelong
getMessageIdLong()
The id of the affected messageMessageReaction
getReaction()
TheMessageReaction
that was removed.MessageReaction.ReactionEmote
getReactionEmote()
TheReactionEmote
.-
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
-
GuildMessageReactionRemoveEmoteEvent
public GuildMessageReactionRemoveEmoteEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nonnull TextChannel channel, @Nonnull MessageReaction reaction, long messageId)
-
-
Method Detail
-
getChannel
@Nonnull public TextChannel getChannel()
TheTextChannel
where the reaction happened- Returns:
- The TextChannel
-
getReaction
@Nonnull public MessageReaction getReaction()
TheMessageReaction
that was removed.- Returns:
- The removed MessageReaction
-
getReactionEmote
@Nonnull public MessageReaction.ReactionEmote getReactionEmote()
- Returns:
- The ReactionEmote
-
getMessageIdLong
public long getMessageIdLong()
The id of the affected message- Returns:
- The id of the message
-
-