class SlashCommandNumberOption
extends
ApplicationCommandOptionBaseexport declare class SlashCommandNumberOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin
readonlyoptionalLocalizationMap description_localizations? :
Inherited from: SharedNameAndDescription
readonlystring description :
Inherited from: SharedNameAndDescription
readonlyoptionalLocalizationMap name_localizations? :
Inherited from: SharedNameAndDescription
readonlystring name :
Inherited from: SharedNameAndDescription
readonlyboolean required :
Inherited from: ApplicationCommandOptionBase
readonlyApplicationCommandOptionType.Number type :
readonlyoptionalboolean autocomplete? :
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
readonlyoptionalAPIApplicationCommandOptionChoice<T>[] choices? :
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
readonlyoptionalnumber max_value? :
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
readonlyoptionalnumber min_value? :
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
readonlyApplicationCommandOptionType type :
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
protected runRequiredValidationsvoid () :
Inherited from: ApplicationCommandOptionBase
setDescriptiondescription: string) : this (
Sets the description
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleStringlocalizedDescription: string | null) : this (
Sets a description localization
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations
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: LocaleStringlocalizedName: string | null) : this (
Sets a name localization
Inherited from: SharedNameAndDescription
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations
Inherited from: SharedNameAndDescription
setRequiredrequired: boolean) : this (
Marks the option as required
Inherited from: ApplicationCommandOptionBase
toJSONAPIApplicationCommandNumberOption () :
addChoiceschoices: APIApplicationCommandOptionChoice<T>[]) : this (
Adds multiple choices for this option
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setAutocompleteautocomplete: boolean) : this (
Marks the option as autocompletable
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setChoicesInput extends APIApplicationCommandOptionChoice<T>[]
>(choices: Input) : this <
Input extends APIApplicationCommandOptionChoice<T>[]
Inherited from: ApplicationCommandOptionWithChoicesAndAutocompleteMixin
setMaxValuemax: number) : this (
Sets the maximum number value of this option
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin
setMinValuemin: number) : this (
Sets the minimum number value of this option
Inherited from: ApplicationCommandNumericOptionMinMaxValueMixin