Optional
autocompleteOptional
channelOptional
descriptionOptional
maxOptional
minOptional
nameOptional
parentOptional
requiredThe name of the choice.
The value of the choice.
Optional
nameLocalizations: Record<string, string>A map of locales to name localizations.
Add a description localization.
The locale of the localization.
The localized description.
Add a name localization.
The locale of the localization.
The localized name.
Add an option.
Optional
extra: ApplicationCommandOptions | ((this, option) => void)Toggle autocomplete for this option.
Optional
value: booleanSet the allowed channel types for this option.
Set the choices for this option.
Set the description of this option.
Set the description localizations of this option.
A map of locales to localized description strings.
Set the min/max for this option. This applied to both minValue
/maxValue
and minLength
/maxLength
.
Optional
min: numberOptional
max: numberSet the name of this option.
Set the name localizations of this option.
A map of locales to localized name strings.
Toggle this option being required.
Optional
value: booleanGenerated using TypeDoc
Add a choice.