declare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin
A slash command integer option.
readonlyoptionalexternalLocalizationMap description_localizations? :
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternalstring description :
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalexternalLocalizationMap name_localizations? :
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyexternalboolean = false required :
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlyexternalApplicationCommandOptionType.Integer type :
The type of this option.
readonlyoptionalexternalboolean autocomplete? :
Whether this option utilizes autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
readonlyoptionalexternalAPIApplicationCommandOptionChoice<ChoiceType>[] choices? :
The choices of this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
readonlyoptionalexternalnumber max_value? :
The maximum value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
readonlyoptionalexternalnumber min_value? :
The minimum value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
protectedexternal runRequiredValidationsvoid () :
This method runs required validators on this builder.
Inherited from: ApplicationCommandOptionBase
external setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizationlocale: LocaleString) : this (
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
external setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
external setMaxValuemax: number) : this (
Sets the maximum number value of this option.
external setMinValuemin: number) : this (
Sets the minimum number value of this option.
external setNamename: string) : this (
Sets the name of this command.
Inherited from: SharedNameAndDescription
external setNameLocalizationlocale: LocaleString) : this (
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
external setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
external setRequiredrequired: boolean) : this (
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
external toJSONAPIApplicationCommandIntegerOption () :
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 setAutocompleteautocomplete: boolean) : this (
Whether this option uses autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
external setChoicesInput extends APIApplicationCommandOptionChoice<ChoiceType>
>(...choices: RestOrArray<Input>) : this <
Input extends APIApplicationCommandOptionChoice<ChoiceType>
Sets multiple choices for this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin