class SlashCommandStringOption
extends
ApplicationCommandOptionBasedeclare class SlashCommandStringOption extends ApplicationCommandOptionBase
readonlyoptionalLocalizationMap description_localizations? :
Inherited from: SharedNameAndDescription
readonlystring description :
Inherited from: SharedNameAndDescription
readonlyoptionalnumber max_length? :
readonlyoptionalnumber min_length? :
readonlyoptionalLocalizationMap name_localizations? :
Inherited from: SharedNameAndDescription
readonlystring name :
Inherited from: SharedNameAndDescription
readonlyboolean required :
Inherited from: ApplicationCommandOptionBase
readonlyApplicationCommandOptionType.String type :
readonlyoptionalboolean autocomplete? :
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
readonlyoptionalAPIApplicationCommandOptionChoice<T>[] choices? :
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
readonlyApplicationCommandOptionType type :
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
protected runRequiredValidationsvoid () :
Inherited from: ApplicationCommandOptionBase
setDescriptiondescription: string) : this (
Sets the description
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleStringlocalizedDescription: string | null) : this (
Sets a description localization
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations
Inherited from: SharedNameAndDescription
setMaxLengthmax: number) : this (
Sets the maximum length of this string option.
setMinLengthmin: number) : this (
Sets the minimum length of this string option.
setNameLocalizationlocale: LocaleStringlocalizedName: string | null) : this (
Sets a name localization
Inherited from: SharedNameAndDescription
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations
Inherited from: SharedNameAndDescription
setRequiredrequired: boolean) : this (
Marks the option as required
Inherited from: ApplicationCommandOptionBase
toJSONAPIApplicationCommandStringOption () :
addChoiceschoices: APIApplicationCommandOptionChoice<T>[]) : this (
Adds multiple choices for this option
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setAutocompleteautocomplete: boolean) : this (
Marks the option as autocompletable
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setChoicesInput extends APIApplicationCommandOptionChoice<T>[]
>(choices: Input) : this <
Input extends APIApplicationCommandOptionChoice<T>[]
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin