Skip to content

Struct command::object::MessageBody

zaun_community_protocol::command::object::MessageBody · Struct

pub struct MessageBody { … }

Content, embeds, components, attachments, mentions and flags of a bot’s message.

≤ 4 000 scalars.

≤ 10 embeds.

Components.

Attachments the bot uploaded to the channel, not yet on a message.

Who to notify.

flags bits.

pub fn flag_bits(&self) -> u32

The flags, 0 when absent.

pub fn is_ephemeral(&self) -> bool

Whether EPHEMERAL is set.

pub fn check(&self, whole: bool) -> Result<(), BodyError>

State-free rules. whole: a new message (needs something to show), not an edit.

The first violated rule.

Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq

Full rustdoc page