SlashCommandIntegerOption
No summary provided.
Extends
ApplicationCommandOptionBaseReadonly
Inherited from SharedNameAndDescription
Inherited from SharedNameAndDescription
Readonly
Inherited from SharedNameAndDescription
Inherited from SharedNameAndDescription
Inherited from ApplicationCommandOptionBase
Readonly
Inherited from ApplicationCommandOptionWithChoicesAndAutocompleteMixin
Readonly
Inherited from ApplicationCommandOptionWithChoicesAndAutocompleteMixin
Inherited from ApplicationCommandNumericOptionMinMaxValueMixin
Inherited from ApplicationCommandNumericOptionMinMaxValueMixin
Readonly
Inherited from ApplicationCommandOptionWithChoicesAndAutocompleteMixin
Sets the description
| Name | Type | Optional | Description |
|---|---|---|---|
| description | string | No | The description |
Sets a description localization
| 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 |
Sets the description localizations
| Name | Type | Optional | Description |
|---|---|---|---|
| localizedDescriptions | LocalizationMap | null | No | The dictionary of localized descriptions to set |
Sets the maximum number value of this option
| Name | Type | Optional | Description |
|---|---|---|---|
| max | number | No | The maximum value this option can be |
Sets the minimum number value of this option
| Name | Type | Optional | Description |
|---|---|---|---|
| min | number | No | The minimum value this option can be |
Sets a name localization
| 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 |
Sets the name localizations
| Name | Type | Optional | Description |
|---|---|---|---|
| localizedNames | LocalizationMap | null | No | The dictionary of localized descriptions to set |
Marks the option as required
| Name | Type | Optional | Description |
|---|---|---|---|
| required | boolean | No | If this option should be required |
Adds multiple choices for this option
| Name | Type | Optional | Description |
|---|---|---|---|
| choices | APIApplicationCommandOptionChoice<T>[] | No | The choices to add |
Marks the option as autocompletable
| Name | Type | Optional | Description |
|---|---|---|---|
| autocomplete | boolean | No | If this option should be autocompletable |
| Name | Constraints | Optional | Default | Description |
|---|---|---|---|---|
| Input | APIApplicationCommandOptionChoice<T>[] | No | None |
| Name | Type | Optional | Description |
|---|---|---|---|
| choices | Input | No | None |
Sets the maximum number value of this option
| Name | Type | Optional | Description |
|---|---|---|---|
| max | number | No | The maximum value this option can be |
Sets the minimum number value of this option
| Name | Type | Optional | Description |
|---|---|---|---|
| min | number | No | The minimum value this option can be |