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