pub struct MessageUpdated {
pub message_id: MessageId,
pub content: String,
pub embeds: Option<Vec<Embed>>,
pub components: Option<Vec<Component>>,
pub flags: Option<u32>,
pub mentions: Option<Mentions>,
pub edited_at: u64,
}Expand description
message.updated: {message_id, content, embeds?, components?, flags?, mentions?, edited_at}.
Fields§
§message_id: MessageIdThe message.
content: StringNew content.
embeds: Option<Vec<Embed>>As in message.edit: absent when the edit left the embeds unchanged, else the
message’s new embeds ([] when the edit removed them all).
components: Option<Vec<Component>>As embeds, for components.
flags: Option<u32>The new flags, when they changed (a deferred reply loses LOADING).
mentions: Option<Mentions>As embeds, for mentions: the ones the host honoured, absent when the edit left them
unchanged.
edited_at: u64Edit time, ms.
Trait Implementations§
Source§impl Clone for MessageUpdated
impl Clone for MessageUpdated
Source§fn clone(&self) -> MessageUpdated
fn clone(&self) -> MessageUpdated
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageUpdated
impl Debug for MessageUpdated
Source§impl<'de> Deserialize<'de> for MessageUpdated
impl<'de> Deserialize<'de> for MessageUpdated
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 MessageUpdated
Source§impl PartialEq for MessageUpdated
impl PartialEq for MessageUpdated
Source§impl Serialize for MessageUpdated
impl Serialize for MessageUpdated
impl StructuralPartialEq for MessageUpdated
Auto Trait Implementations§
impl Freeze for MessageUpdated
impl RefUnwindSafe for MessageUpdated
impl Send for MessageUpdated
impl Sync for MessageUpdated
impl Unpin for MessageUpdated
impl UnsafeUnpin for MessageUpdated
impl UnwindSafe for MessageUpdated
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