class SlashCommandIntegerOption
extends
ApplicationCommandOptionBaseexport declare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin
A slash command integer option.
readonlyoptionalLocalizationMap description_localizations? :
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlystring description :
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalLocalizationMap name_localizations? :
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyboolean = false required :
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlyApplicationCommandOptionType.Integer type :
The type of this option.
readonlyoptionalboolean autocomplete? :
Whether this option utilizes autocomplete.
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
readonlyoptionalAPIApplicationCommandOptionChoice<ChoiceType>[] choices? :
The choices of this option.
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
readonlyoptionalnumber max_value? :
The maximum value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
readonlyoptionalnumber min_value? :
The minimum value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
readonlyApplicationCommandOptionType type :
The type of this option.
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
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
setMaxValuemax: number) : this (
Sets the maximum number value of this option.
setMinValuemin: number) : this (
Sets the minimum number value of this 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
toJSONAPIApplicationCommandIntegerOption () :
Serializes this builder to API-compatible JSON data.
addChoices...choices: APIApplicationCommandOptionChoice<ChoiceType>[]) : this (
Adds multiple choices to this option.
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setAutocompleteautocomplete: boolean) : this (
Whether this option uses autocomplete.
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setChoicesInput extends APIApplicationCommandOptionChoice<ChoiceType>[]
>(...choices: Input) : this <
Input extends APIApplicationCommandOptionChoice<ChoiceType>[]
Sets multiple choices for this option.
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
abstract setMaxValuemax: number) : this (
Sets the maximum number value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
abstract setMinValuemin: number) : this (
Sets the minimum number value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin