class SlashCommandIntegerOption
extends
ApplicationCommandOptionBasedeclare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixinA slash command integer option.
readonlyoptionaldescription_localizations? : LocalizationMap 
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlydescription : string 
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalname_localizations? : LocalizationMap 
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyrequired : boolean = false
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlytype : ApplicationCommandOptionType.Integer 
The type of this option.
readonlyoptionalautocomplete? : boolean 
Whether this option utilizes autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
readonlyoptionalchoices? : APIApplicationCommandOptionChoice<ChoiceType>[] 
The choices of this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
readonlyoptionalmax_value? : number 
The maximum value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
readonlyoptionalmin_value? : number 
The minimum value of this option.
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
protected runRequiredValidations() : void
This method runs required validators on this builder.
Inherited from: ApplicationCommandOptionBase
 setDescription(description: string) : this
Sets the description of this command.
Inherited from: SharedNameAndDescription
 setDescriptionLocalization(locale: LocaleString) : this
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
 setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null) : this
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
 setMaxValue(max: number) : this
Sets the maximum number value of this option.
 setMinValue(min: number) : this
Sets the minimum number value of this option.
 setNameLocalization(locale: LocaleString) : this
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
 setNameLocalizations(localizedNames: LocalizationMap | null) : this
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
 setRequired(required: boolean) : this
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
toJSON() : APIApplicationCommandIntegerOption
Serializes this builder to API-compatible JSON data.
 addChoices(...choices: RestOrArray<APIApplicationCommandOptionChoice<ChoiceType>>) : this
Adds multiple choices to this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin
 setAutocomplete(autocomplete: boolean) : this
Whether this option uses autocomplete.
Inherited from: ApplicationCommandOptionWithAutocompleteMixin
 setChoices<Input extends APIApplicationCommandOptionChoice<ChoiceType>
>(...choices: RestOrArray<Input>) : this
Input extends APIApplicationCommandOptionChoice<ChoiceType>
Sets multiple choices for this option.
Inherited from: ApplicationCommandOptionWithChoicesMixin