class SlashCommandStringOption
extends
ApplicationCommandOptionBaseexport declare class SlashCommandStringOption extends ApplicationCommandOptionBase
A slash command string option.
readonlyoptionalLocalizationMap description_localizations? :
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlystring description :
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalnumber max_length? :
The maximum length of this option.
readonlyoptionalnumber min_length? :
The minimum length of this option.
readonlyoptionalLocalizationMap name_localizations? :
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyboolean required :
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlyApplicationCommandOptionType.String type :
The type of this option.
readonlyoptionalboolean autocomplete? :
Whether this option utilizes autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
readonlyoptionalAPIApplicationCommandOptionChoice<ChoiceType>[] choices? :
The choices of this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
protected runRequiredValidationsvoid () :
This method runs required validators on this builder.
Inherited from: ApplicationCommandOptionBase
setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleString) : this (
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations for this command.
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: LocaleString) : this (
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
setRequiredrequired: boolean) : this (
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
toJSONAPIApplicationCommandStringOption () :
Serializes this builder to API-compatible JSON data.
addChoices...choices: RestOrArray<APIApplicationCommandOptionChoice<ChoiceType>>) : this (
Adds multiple choices to this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
setAutocompleteautocomplete: boolean) : this (
Whether this option uses autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
setChoicesInput extends APIApplicationCommandOptionChoice<ChoiceType>
>(...choices: RestOrArray<Input>) : this <
Input extends APIApplicationCommandOptionChoice<ChoiceType>
Sets multiple choices for this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin