Class ReactionRemoveEmojiEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.message.MessageEvent
-
- discord4j.core.event.domain.message.ReactionRemoveEmojiEvent
-
public class ReactionRemoveEmojiEvent extends MessageEvent
Dispatched when a reactions of one emoji are removed on a message.guildId
may not be present if the message was in a private channel.This event is dispatched by Discord.
- See Also:
- Message Reaction Remove Emoji
-
-
Constructor Summary
Constructors Constructor Description ReactionRemoveEmojiEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long channelId, long messageId, Long guildId, ReactionEmoji emoji)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<MessageChannel>
getChannel()
Requests to retrieve theMessageChannel
containing theMessage
the reaction was removed from.Snowflake
getChannelId()
ReactionEmoji
getEmoji()
TheReactionEmoji
that was removed from a message.Mono<Guild>
getGuild()
Optional<Snowflake>
getGuildId()
Mono<Message>
getMessage()
Requests to retrieve theMessage
the reaction was removed from.Snowflake
getMessageId()
String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ReactionRemoveEmojiEvent
public ReactionRemoveEmojiEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long channelId, long messageId, @Nullable Long guildId, ReactionEmoji emoji)
-
-
Method Detail
-
getChannelId
public Snowflake getChannelId()
- Returns:
- The ID of the
MessageChannel
involved.
-
getChannel
public Mono<MessageChannel> getChannel()
Requests to retrieve theMessageChannel
containing theMessage
the reaction was removed from.- Returns:
- A
Mono
where, upon successful completion, emits theMessageChannel
containing theMessage
involved. If an error is received, it is emitted through theMono
.
-
getMessage
public Mono<Message> getMessage()
Requests to retrieve theMessage
the reaction was removed from.
-
getGuildId
public Optional<Snowflake> getGuildId()
Gets theSnowflake
ID of theGuild
theMessage
involved is in, if present. This may not be available if theMessage
was sent in a private channel.- Returns:
- The ID of the
Guild
involved, if present.
-
getEmoji
public ReactionEmoji getEmoji()
TheReactionEmoji
that was removed from a message.- Returns:
- The
Emoji
that has been removed.
-
-