Function command::object::check_embeds
zaun_community_protocol::command::object::check_embeds · Function
pub fn check_embeds(embeds: &[Embed], attachments: Option<&[AttachmentId]>) -> Result<(), BodyError>The state-free rules of a message’s embeds: at most 10, each valid and showing
something, at most 6 000 scalars of text in all. With attachments, every picture an
embed shows must be one of them (check_pictures).
Errors
Section titled “Errors”PAYLOAD_TOO_LARGE for a text, link or list over its limit (embeds with limit 6 000 for
the total text); BAD_REQUEST for any other broken rule.