Optional
Readonly
autocompleteWhether this option utilizes autocomplete.
Optional
Readonly
choicesThe choices of this option.
Readonly
descriptionThe description of this command.
Optional
Readonly
description_The description localizations of this command.
Optional
Readonly
max_The maximum value of this option.
Optional
Readonly
min_The minimum value of this option.
Readonly
nameThe name of this command.
Optional
Readonly
name_The name localizations of this command.
Readonly
requiredWhether this option is required.
false
Readonly
typeThe type of this option.
Adds multiple choices to this option.
Rest
...choices: RestOrArray<APIApplicationCommandOptionChoice<number>>The choices to add
Protected
runWhether this option uses autocomplete.
Whether this option should use autocomplete
Sets multiple choices for this option.
Rest
...choices: RestOrArray<Input>The choices to set
Sets the description of this command.
The description to use
Sets a description localization for this command.
The locale to set
The localized description for the given locale
Sets the description localizations for this command.
The object of localized descriptions to set
Sets the maximum number value of this option.
The maximum value this option can be
Sets the minimum number value of this option.
The minimum value this option can be
Sets the name of this command.
The name to use
Sets a name localization for this command.
The locale to set
The localized name for the given locale
Sets the name localizations for this command.
The object of localized names to set
Sets whether this option is required.
Whether this option should be required
Serializes this builder to API-compatible JSON data.
This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.
Generated using TypeDoc
A slash command integer option.