Struct event::MessageUpdated
zaun_community_protocol::event::MessageUpdated · Struct
pub struct MessageUpdated { … }message.updated: {message_id, content, embeds?, components?, flags?, mentions?, edited_at}.
Fields
Section titled “Fields”message_id: MessageId
Section titled “message_id: MessageId”The message.
content: String
Section titled “content: String”New content.
embeds: Option<Vec<Embed>>
Section titled “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>>
Section titled “components: Option<Vec<Component>>”As embeds, for components.
flags: Option<u32>
Section titled “flags: Option<u32>”The new flags, when they changed (a deferred reply loses LOADING).
mentions: Option<Mentions>
Section titled “mentions: Option<Mentions>”As embeds, for mentions: the ones the host honoured, absent when the edit left them
unchanged.
edited_at: u64
Section titled “edited_at: u64”Edit time, ms.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq