Class MessageBulkDeleteEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.message.MessageEvent
-
- discord4j.core.event.domain.message.MessageBulkDeleteEvent
-
public class MessageBulkDeleteEvent extends MessageEvent
Dispatched when multiple messages are deleted at once.Corresponding
message deletes
are NOT dispatched for messages included in this event.This event is dispatched by Discord.
- See Also:
- Message Delete Bulk
-
-
Constructor Summary
Constructors Constructor Description MessageBulkDeleteEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, List<Long> messageIds, long channelId, long guildId, Set<Message> messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<TextChannel>
getChannel()
Requests to retrieve theTextChannel
representation of theChannel
the messages were deleted in.Snowflake
getChannelId()
Gets theSnowflake
ID of theTextChannel
the messages were deleted in.Mono<Guild>
getGuild()
Requests to retrieve theGuild
the messages were deleted in.Snowflake
getGuildId()
Set<Snowflake>
getMessageIds()
Gets a list ofSnowflake
IDs of the messages that were deleted.Set<Message>
getMessages()
Gets a list ofMessage
objects there were deleted in this event.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Method Detail
-
getMessageIds
public Set<Snowflake> getMessageIds()
Gets a list ofSnowflake
IDs of the messages that were deleted.- Returns:
- a list of IDs of the messages that were deleted.
-
getMessages
public Set<Message> getMessages()
Gets a list ofMessage
objects there were deleted in this event.- Returns:
- a list of
Message
objects that were deleted.
-
getChannelId
public Snowflake getChannelId()
Gets theSnowflake
ID of theTextChannel
the messages were deleted in.- Returns:
- The ID of the
TextChannel
that the messages were deleted in.
-
getChannel
public Mono<TextChannel> getChannel()
Requests to retrieve theTextChannel
representation of theChannel
the messages were deleted in.- Returns:
- A
Mono
where, upon successful completion, emits theTextChannel
the messages were deleted from. If an error is received, it is emitted through theMono
.
-
-