SlashCommandIntegerOption
No summary provided.
declare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin declare class SlashCommandIntegerOption extends ApplicationCommandOptionBase implements ApplicationCommandNumericOptionMinMaxValueMixin Extends
ApplicationCommandOptionBaseReadonly
Optional
description_localizations?
:
LocalizationMap
Inherited from SharedNameAndDescription
Readonly
description
:
string
Inherited from SharedNameAndDescription
Readonly
Optional
name_localizations?
:
LocalizationMap
Inherited from SharedNameAndDescription
Readonly
name
:
string
Inherited from SharedNameAndDescription
Readonly
required
:
boolean
Inherited from ApplicationCommandOptionBase
Readonly
type
:
ApplicationCommandOptionType.Integer
Protected
runRequiredValidations()
:
void
setDescription(description)
:
this
Sets the description
Inherited from SharedNameAndDescription
| Name | Type | Optional | Description |
|---|---|---|---|
| description | string | No | The description |
setDescriptionLocalization(locale, localizedDescription)
:
this
Sets a description localization
Inherited from SharedNameAndDescription
| Name | Type | Optional | Description |
|---|---|---|---|
| locale | LocaleString | No | The locale to set a description for |
| localizedDescription | string | null | No | The localized description for the given locale |
setDescriptionLocalizations(localizedDescriptions)
:
this
Sets the description localizations
Inherited from SharedNameAndDescription
| Name | Type | Optional | Description |
|---|---|---|---|
| localizedDescriptions | LocalizationMap | null | No | The dictionary of localized descriptions to set |
setMaxValue(max)
:
this
Sets the maximum number value of this option
| Name | Type | Optional | Description |
|---|---|---|---|
| max | number | No | The maximum value this option can be |
setMinValue(min)
:
this
Sets the minimum number value of this option
| Name | Type | Optional | Description |
|---|---|---|---|
| min | number | No | The minimum value this option can be |
setName(name)
:
this
setNameLocalization(locale, localizedName)
:
this
Sets a name localization
Inherited from SharedNameAndDescription
| Name | Type | Optional | Description |
|---|---|---|---|
| locale | LocaleString | No | The locale to set a description for |
| localizedName | string | null | No | The localized description for the given locale |
setNameLocalizations(localizedNames)
:
this
Sets the name localizations
Inherited from SharedNameAndDescription
| Name | Type | Optional | Description |
|---|---|---|---|
| localizedNames | LocalizationMap | null | No | The dictionary of localized descriptions to set |
setRequired(required)
:
this
Marks the option as required
Inherited from ApplicationCommandOptionBase
| Name | Type | Optional | Description |
|---|---|---|---|
| required | boolean | No | If this option should be required |