Function twilight_validate::message::embeds

source ·
pub fn embeds(embeds: &[Embed]) -> Result<(), MessageValidationError>
Expand description

Ensure a list of embeds is correct.

§Errors

Returns an error of type TooManyEmbeds if there are too many embeds.

Otherwise, refer to the errors section of embed for a list of errors that may occur.