public class MessageBulkDeleteEvent extends MessageEvent
Corresponding message deletes
are NOT dispatched for
messages included in this event.
This event is dispatched by Discord.
Constructor and Description |
---|
MessageBulkDeleteEvent(DiscordClient client,
long[] messageIds,
long channelId,
long guildId,
Set<Message> messages) |
Modifier and Type | Method and Description |
---|---|
Mono<MessageChannel> |
getChannel()
Requests to retrieve the
MessageChannel representation of the Channel the messages were deleted
in. |
Snowflake |
getChannelId()
Gets the
Snowflake ID of the MessageChannel the messages were deleted in. |
Mono<Guild> |
getGuild()
Requests to retrieve the
Guild the messages were deleted in. |
Snowflake |
getGuildId()
|
Set<Snowflake> |
getMessageIds()
Gets a list of
Snowflake IDs of the messages that were deleted. |
Set<Message> |
getMessages()
Gets a list of
Message objects there were deleted in this event. |
String |
toString() |
public MessageBulkDeleteEvent(DiscordClient client, long[] messageIds, long channelId, long guildId, Set<Message> messages)
public Set<Snowflake> getMessageIds()
Snowflake
IDs of the messages that were deleted.public Set<Message> getMessages()
Message
objects there were deleted in this event.Message
objects that were deleted.public Snowflake getChannelId()
Snowflake
ID of the MessageChannel
the messages were deleted in.MessageChannel
that the messages were deleted in.public Mono<MessageChannel> getChannel()
MessageChannel
representation of the Channel
the messages were deleted
in.Mono
where, upon successful completion, emits the MessageChannel
the messages
were deleted from. If an error is received, it is emitted through the Mono
.