#[non_exhaustive]pub struct MessageDelete {
pub id: MessageId,
pub channel_id: ChannelId,
pub guild_id: Option<GuildId>,
}Expand description
The data of the Message Delete dispatch event.
discord.js counterpart: the MessageDelete event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: MessageIdThe deleted message.
channel_id: ChannelIdThe message’s channel.
guild_id: Option<GuildId>The message’s guild.
Trait Implementations§
Source§impl Clone for MessageDelete
impl Clone for MessageDelete
Source§impl Debug for MessageDelete
impl Debug for MessageDelete
Source§impl<'de> Deserialize<'de> for MessageDelete
impl<'de> Deserialize<'de> for MessageDelete
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageDelete
Source§impl Hash for MessageDelete
impl Hash for MessageDelete
Source§impl PartialEq for MessageDelete
impl PartialEq for MessageDelete
Source§impl Serialize for MessageDelete
impl Serialize for MessageDelete
impl StructuralPartialEq for MessageDelete
Auto Trait Implementations§
impl Forget for MessageDelete
impl Freeze for MessageDelete
impl Move for MessageDelete
impl RefUnwindSafe for MessageDelete
impl Send for MessageDelete
impl Sync for MessageDelete
impl Unpin for MessageDelete
impl UnsafeUnpin for MessageDelete
impl UnwindSafe for MessageDelete
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more