Skip to content

ApplicationCommandOption

typedef · Source

An option for an application command or subcommand. Type: Object

Properties

type

type: ApplicationCommandOptionType

The type of the option

name

name: string

The name of the option

nameLocalizations

optional

nameLocalizations: Object<string, string>

The localizations for the option name

nameLocalized

optional

nameLocalized: string

The localized name for this option

description

description: string

The description of the option

descriptionLocalizations

optional

descriptionLocalizations: Object<string, string>

The localizations for the option description

descriptionLocalized

optional

descriptionLocalized: string

The localized description for this option

required

optional

required: boolean

Whether the option is required

autocomplete

optional

autocomplete: boolean

Whether the option is an autocomplete option

choices

optional

choices: Array<ApplicationCommandOptionChoice>

The choices of the option for the user to pick from

options

optional

options: Array<ApplicationCommandOption>

Additional options if this option is a subcommand (group)

channelTypes

optional

channelTypes: Array<ChannelType>

When the option type is channel, the allowed types of channels that can be selected

minValue

optional

minValue: number

The minimum value for an INTEGER or NUMBER option

maxValue

optional

maxValue: number

The maximum value for an INTEGER or NUMBER option

minLength

optional

minLength: number

The minimum length for a STRING option (maximum of 6000)

maxLength

optional

maxLength: number

The maximum length for a STRING option (maximum of 6000)

Unofficial software. Not affiliated with or supported by Discord.