SlashCommandNumberOption

export declare class SlashCommandNumberOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin
export declare class SlashCommandNumberOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin

No summary provided.

Readonly
description_localizations?:LocalizationMap
Readonly
description:string
Readonly
name_localizations?:LocalizationMap
Readonly
name:string
Readonly
required:boolean
Readonly
autocomplete?:boolean
Readonly
max_value?:number
Readonly
min_value?:number
Protected
runRequiredValidations():void
setDescription(description):this
Sets the description
NameTypeOptionalDescription
descriptionstringNoThe description
Inherited from SharedNameAndDescription
setDescriptionLocalization(locale, localizedDescription):this
Sets a description localization
NameTypeOptionalDescription
localeLocaleStringNoThe locale to set a description for
localizedDescriptionstring | nullNoThe localized description for the given locale
Inherited from SharedNameAndDescription
setDescriptionLocalizations(localizedDescriptions):this
Sets the description localizations
NameTypeOptionalDescription
localizedDescriptionsLocalizationMap | nullNoThe dictionary of localized descriptions to set
Inherited from SharedNameAndDescription
setMaxValue(max):this
NameTypeOptionalDescription
maxnumberNoNone
setMinValue(min):this
NameTypeOptionalDescription
minnumberNoNone
setName(name):this
Sets the name
NameTypeOptionalDescription
namestringNoThe name
Inherited from SharedNameAndDescription
setNameLocalization(locale, localizedName):this
Sets a name localization
NameTypeOptionalDescription
localeLocaleStringNoThe locale to set a description for
localizedNamestring | nullNoThe localized description for the given locale
Inherited from SharedNameAndDescription
setNameLocalizations(localizedNames):this
Sets the name localizations
NameTypeOptionalDescription
localizedNamesLocalizationMap | nullNoThe dictionary of localized descriptions to set
Inherited from SharedNameAndDescription
setRequired(required):this
Marks the option as required
NameTypeOptionalDescription
requiredbooleanNoIf this option should be required
Inherited from ApplicationCommandOptionBase
addChoices(choices):this
Adds multiple choices for this option
NameTypeOptionalDescription
choicesAPIApplicationCommandOptionChoice<T>[]NoThe choices to add
Inherited from ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setAutocomplete(autocomplete):this
Marks the option as autocompletable
NameTypeOptionalDescription
autocompletebooleanNoIf this option should be autocompletable
Inherited from ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setChoices(choices):this
NameConstraintsOptionalDefaultDescription
InputAPIApplicationCommandOptionChoice<T>[]NoNone
NameTypeOptionalDescription
choicesInputNoNone
Inherited from ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setMaxValue(max):this
Sets the maximum number value of this option
NameTypeOptionalDescription
maxnumberNoThe maximum value this option can be
Inherited from ApplicationCommandNumericOptionMinMaxValueMixin
setMinValue(min):this
Sets the minimum number value of this option
NameTypeOptionalDescription
minnumberNoThe minimum value this option can be
Inherited from ApplicationCommandNumericOptionMinMaxValueMixin