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 deletesare 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 theTextChannelrepresentation of theChannelthe messages were deleted in.SnowflakegetChannelId()Gets theSnowflakeID of theTextChannelthe messages were deleted in.Mono<Guild>getGuild()Requests to retrieve theGuildthe messages were deleted in.SnowflakegetGuildId()Set<Snowflake>getMessageIds()Gets a list ofSnowflakeIDs of the messages that were deleted.Set<Message>getMessages()Gets a list ofMessageobjects there were deleted in this event.StringtoString()-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Method Detail
-
getMessageIds
public Set<Snowflake> getMessageIds()
Gets a list ofSnowflakeIDs 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 ofMessageobjects there were deleted in this event.- Returns:
- a list of
Messageobjects that were deleted.
-
getChannelId
public Snowflake getChannelId()
Gets theSnowflakeID of theTextChannelthe messages were deleted in.- Returns:
- The ID of the
TextChannelthat the messages were deleted in.
-
getChannel
public Mono<TextChannel> getChannel()
Requests to retrieve theTextChannelrepresentation of theChannelthe messages were deleted in.- Returns:
- A
Monowhere, upon successful completion, emits theTextChannelthe messages were deleted from. If an error is received, it is emitted through theMono.
-
-