declare class SlashCommandStringOption extends ApplicationCommandOptionBaseA slash command string option.
readonlyoptionalexternaldescription_localizations? : LocalizationMap
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternaldescription : string
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalexternalmax_length? : number
The maximum length of this option.
readonlyoptionalexternalmin_length? : number
The minimum length of this option.
readonlyoptionalexternalname_localizations? : LocalizationMap
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternalrequired : boolean = false
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlyexternaltype : ApplicationCommandOptionType.String
The type of this option.
readonlyoptionalexternalautocomplete? : boolean
Whether this option utilizes autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
readonlyoptionalexternalchoices? : APIApplicationCommandOptionChoice<ChoiceType>[]
The choices of this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
protectedexternal runRequiredValidations() : void
This method runs required validators on this builder.
Inherited from: ApplicationCommandOptionBase
external setDescription(description: string) : this
Sets the description of this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalization(locale: LocaleString) : this
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null) : this
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
external setMaxLength(max: number) : this
Sets the maximum length of this string option.
external setMinLength(min: number) : this
Sets the minimum length of this string option.
external setName(name: string) : this
Sets the name of this command.
Inherited from: SharedNameAndDescription
external setNameLocalization(locale: LocaleString) : this
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
external setNameLocalizations(localizedNames: LocalizationMap | null) : this
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
external setRequired(required: boolean) : this
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
external toJSON() : APIApplicationCommandStringOption
Serializes this builder to API-compatible JSON data.
external addChoices(...choices: RestOrArray<APIApplicationCommandOptionChoice<ChoiceType>>) : this
Adds multiple choices to this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
external setAutocomplete(autocomplete: boolean) : this
Whether this option uses autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
external setChoices<Input extends APIApplicationCommandOptionChoice<ChoiceType>
>(...choices: RestOrArray<Input>) : this
Input extends APIApplicationCommandOptionChoice<ChoiceType>
Sets multiple choices for this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin