public class MessageDeleteEvent extends MessageEvent
The deleted message may not be present if messages are not stored.
This event is dispatched by Discord.
Constructor and Description |
---|
MessageDeleteEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
long messageId,
long channelId,
Long guildId,
Message message) |
Modifier and Type | Method and Description |
---|---|
Mono<MessageChannel> |
getChannel()
Requests to retrieve the
MessageChannel the Message was deleted from. |
Snowflake |
getChannelId()
|
Mono<Guild> |
getGuild()
|
Optional<Snowflake> |
getGuildId()
|
Optional<Message> |
getMessage()
Gets the
Message that was deleted in this event, if present. |
Snowflake |
getMessageId()
|
String |
toString() |
getClient, getShardInfo
public Optional<Message> getMessage()
Message
that was deleted in this event, if present.
This may not be available if Messages
are not stored.Message
, if present.public Snowflake getChannelId()
MessageChannel
that the Message
was deleted from.public Mono<MessageChannel> getChannel()
MessageChannel
the Message
was deleted from.Mono
where, upon successful completion, emits the MessageChannel
the
Message
was deleted in. If an error is received, it is emitted through the Mono
.public Optional<Snowflake> getGuildId()
Snowflake
ID of the Guild
the
Message
was deleted from, if present.
This may not be available if the deleted Message
was from a private channel.Guild
involved, if present.