Function twilight_validate::message::attachment_description

source ·
pub fn attachment_description(
    description: impl AsRef<str>
) -> Result<(), MessageValidationError>
Expand description

Ensure an attachment’s description is correct.

§Errors

Returns an error of type AttachmentDescriptionTooLarge if the attachment’s description is too large.