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
.