Skip to content

Function command::object::check_pictures

zaun_community_protocol::command::object::check_pictures · Function

pub fn check_pictures(embeds: &[Embed], attachments: &[AttachmentId]) -> Result<(), BodyError>

Every picture an embed shows (image, thumbnail, author.icon, footer.icon) is one of the message’s attachments, so it travels the attachment path like any file and nobody fetches it from elsewhere.

BAD_REQUEST naming the field of the first picture that is not.

Full rustdoc page