Struct command::object::Message
zaun_community_protocol::command::object::Message · Struct
pub struct Message { … }A stored message as returned by message.history.
Fields
Section titled “Fields”message_id: MessageId
Section titled “message_id: MessageId”Host-assigned id.
channel_id: ChannelId
Section titled “channel_id: ChannelId”The channel.
sequence: u64
Section titled “sequence: u64”Its channel_seq.
author_id: MemberId
Section titled “author_id: MemberId”The author, from the connection binding.
created_at: u64
Section titled “created_at: u64”Acceptance time, ms.
edited_at: Option<u64>
Section titled “edited_at: Option<u64>”Last edit time, ms.
content: String
Section titled “content: String”≤ 4 000 scalars; empty only when the message has an attachment or an embed.
embeds: Vec<Embed>
Section titled “embeds: Vec<Embed>”Rich embeds, in the author’s order; absent when none.
components: Vec<Component>
Section titled “components: Vec<Component>”Components (bots only, the protocol); absent when none.
flags: u32
Section titled “flags: u32”Message flags; absent when 0.
interaction_metadata: Option<Box<InteractionMetadata>>
Section titled “interaction_metadata: Option<Box<InteractionMetadata>>”The interaction this message answers.
reply_to: Option<MessageId>
Section titled “reply_to: Option<MessageId>”The message replied to.
mentions: Mentions
Section titled “mentions: Mentions”Who is mentioned.
attachments: Vec<Attachment>
Section titled “attachments: Vec<Attachment>”Attachments, in the order the author listed them.
reactions: Vec<ReactionCount>
Section titled “reactions: Vec<ReactionCount>”Reaction counts.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq