pub fn choice_name(name: &str) -> Result<(), CommandValidationError>
Expand description

Validate a single name localization in a CommandOptionChoice.

Errors

Returns an error of type OptionChoiceNameLengthInvalid if the name is less than OPTION_CHOICE_NAME_LENGTH_MIN or more than OPTION_CHOICE_NAME_LENGTH_MAX.