Skip to main content

attachment_extension

Function attachment_extension 

Source
pub fn attachment_extension(
    attachment_extension: &[&str],
) -> Result<(), SearchGuildMessagesError>
Expand description

Ensure a list of attachment extensions is correct.

ยงErrors

Returns an error of type AttachmentExtensionCount if the number of attachment extension entries is invalid.

Returns an error of type AttachmentExtensionEntryLength if one of the attachment extension entries has an invalid length.