ApplicationCommandOption
typedef · Source
An option for an application command or subcommand. Type: Object
Properties
type
The type of the option
name
The name of the option
nameLocalizations
The localizations for the option name
nameLocalized
The localized name for this option
description
The description of the option
descriptionLocalizations
The localizations for the option description
descriptionLocalized
The localized description for this option
required
Whether the option is required
autocomplete
Whether the option is an autocomplete option
choices
The choices of the option for the user to pick from
options
Additional options if this option is a subcommand (group)
channelTypes
When the option type is channel, the allowed types of channels that can be selected
minValue
The minimum value for an INTEGER or NUMBER option
maxValue
The maximum value for an INTEGER or NUMBER option
minLength
The minimum length for a STRING option (maximum of 6000)
maxLength
The maximum length for a STRING option (maximum of 6000)