Class MessageBulkDeleteEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.message.MessageEvent
discord4j.core.event.domain.message.MessageBulkDeleteEvent
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:
-
Constructor Summary
ConstructorDescriptionMessageBulkDeleteEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, List<Long> messageIds, long channelId, long guildId, Set<Message> messages) -
Method Summary
Modifier and TypeMethodDescriptionRequests to retrieve theMessageChannel
representation of theChannel
the messages were deleted in.Gets theSnowflake
ID of theMessageChannel
the messages were deleted in.getGuild()
Requests to retrieve theGuild
the messages were deleted in.Gets a list ofSnowflake
IDs of the messages that were deleted.Gets a list ofMessage
objects there were deleted in this event.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
MessageBulkDeleteEvent
-
-
Method Details
-
getMessageIds
Gets a list ofSnowflake
IDs of the messages that were deleted.- Returns:
- a list of IDs of the messages that were deleted.
-
getMessages
Gets a list ofMessage
objects there were deleted in this event.- Returns:
- a list of
Message
objects that were deleted.
-
getChannelId
Gets theSnowflake
ID of theMessageChannel
the messages were deleted in.- Returns:
- The ID of the
MessageChannel
that the messages were deleted in.
-
getChannel
Requests to retrieve theMessageChannel
representation of theChannel
the messages were deleted in.- Returns:
- A
Mono
where, upon successful completion, emits theMessageChannel
the messages were deleted from. If an error is received, it is emitted through theMono
.
-
getGuildId
- Returns:
- The ID of the
Guild
the messages were deleted in.
-
getGuild
Requests to retrieve theGuild
the messages were deleted in. -
toString
-