Struct command::message::Edit
zaun_community_protocol::command::message::Edit · Struct
pub struct Edit { … }message.edit. Author only.
Fields
Section titled “Fields”message_id: MessageId
Section titled “message_id: MessageId”The message.
content: String
Section titled “content: String”≤ 4 000 scalars; the edited message must still have content, an attachment or an embed.
embeds: Option<Vec<Embed>>
Section titled “embeds: Option<Vec<Embed>>”The message’s new embeds (EMBED_LINKS unless empty): absent leaves them unchanged,
[] removes them all. Their pictures must be attachments already on the message.
components: Option<Vec<Component>>
Section titled “components: Option<Vec<Component>>”New components (bots only): absent leaves them unchanged, [] removes them.
mentions: Option<Mentions>
Section titled “mentions: Option<Mentions>”Who the edited message mentions, by message.send’s rules: absent leaves the
mentions unchanged, otherwise they replace them all.
Trait implementations
Section titled “Trait implementations”Body, Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate