pub fn check_embeds(
embeds: &[Embed],
attachments: Option<&[AttachmentId]>,
) -> Result<(), BodyError>Expand description
The state-free rules of a message’s embeds (§8.5): 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
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.