Function twilight_validate::command::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.