class SlashCommandNumberOption

external
declare class SlashCommandNumberOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin

A slash command number option.

readonlyoptionalexternal
description_localizations? : LocalizationMap

The description localizations of this command.

Inherited from: SharedNameAndDescription

readonlyexternal
description : string

The description of this command.

Inherited from: SharedNameAndDescription

readonlyoptionalexternal
name_localizations? : LocalizationMap

The name localizations of this command.

Inherited from: SharedNameAndDescription

readonlyexternal
name : string

The name of this command.

Inherited from: SharedNameAndDescription

readonlyexternal
required : boolean = false

Whether this option is required.

Inherited from: ApplicationCommandOptionBase

readonlyexternal
type : ApplicationCommandOptionType.Number

The type of this option.

readonlyoptionalexternal
autocomplete? : boolean

Whether this option utilizes autocomplete.

Inherited from: ApplicationCommandOptionWithAutocompleteMixin

readonlyoptionalexternal
choices? : APIApplicationCommandOptionChoice<ChoiceType>[]

The choices of this option.

Inherited from: ApplicationCommandOptionWithChoicesMixin

readonlyoptionalexternal
max_value? : number

The maximum value of this option.

Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin

readonlyoptionalexternal
min_value? : number

The minimum value of this option.

Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin

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
localizedDescription: string | null
) : 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
setMaxValue(
max: number
) : this

Sets the maximum number value of this option.

external
setMinValue(
min: number
) : this

Sets the minimum number value of this option.

external
setName(
name: string
) : this

Sets the name of this command.

Inherited from: SharedNameAndDescription

external
setNameLocalization(
locale: LocaleString
localizedName: string | null
) : 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

Serializes this builder to API-compatible JSON data.

external
addChoices() : 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

Sets multiple choices for this option.

Inherited from: ApplicationCommandOptionWithChoicesMixin