Skip to main content

check_pictures

Function check_pictures 

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

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.

§Errors

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