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.guildIdmay not be present if the message was in a private channel.Corresponding
reactions removesare 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 theMessageChannelcontaining theMessageand the removed reactions.SnowflakegetChannelId()Mono<Guild>getGuild()Optional<Snowflake>getGuildId()Mono<Message>getMessage()Requests to retrieve theMessagethe reactions were removed from in this event.SnowflakegetMessageId()StringtoString()-
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
MessageChannelinvolved.
-
getChannel
public Mono<MessageChannel> getChannel()
Requests to retrieve theMessageChannelcontaining theMessageand the removed reactions.- Returns:
- A
Monowhere, upon successful completion, emits theMessageChannelcontaining the message involved. If an error is received, it is emitted through theMono
-
getMessage
public Mono<Message> getMessage()
Requests to retrieve theMessagethe reactions were removed from in this event.
-
-