twilight_validate::command

Function command

source
pub fn command(value: &Command) -> Result<(), CommandValidationError>
Expand description

Validate a Command.

ยงErrors

Returns an error of type DescriptionInvalid if the description is invalid.

Returns an error of type NameLengthInvalid or NameCharacterInvalid if the name is invalid.