ApplicationCommandOption
Documentation / @discordeno/bot / ApplicationCommandOption
Interface: ApplicationCommandOption
Defined in: packages/bot/src/transformers/types.ts:211
Properties
autocomplete?
optional
autocomplete:boolean
Defined in: packages/bot/src/transformers/types.ts:239
if autocomplete interactions are enabled for this String
, Integer
, or Number
type option
channelTypes?
optional
channelTypes:ChannelTypes
[]
Defined in: packages/bot/src/transformers/types.ts:229
If the option is a channel type, the channels shown will be restricted to these types
choices?
optional
choices:ApplicationCommandOptionChoice
[]
Defined in: packages/bot/src/transformers/types.ts:225
Choices for string
and int
types for the user to pick from
description
description:
string
Defined in: packages/bot/src/transformers/types.ts:219
1-100 character description
descriptionLocalizations?
optional
descriptionLocalizations:Partial
<Record
<Locales
,string
>>
Defined in: packages/bot/src/transformers/types.ts:221
Localization object for the description
field. Values follow the same restrictions as description
maxLength?
optional
maxLength:number
Defined in: packages/bot/src/transformers/types.ts:237
Maximum length desired.
maxValue?
optional
maxValue:number
Defined in: packages/bot/src/transformers/types.ts:233
Maximum number desired.
minLength?
optional
minLength:number
Defined in: packages/bot/src/transformers/types.ts:235
Minimum length desired.
minValue?
optional
minValue:number
Defined in: packages/bot/src/transformers/types.ts:231
Minimum number desired.
name
name:
string
Defined in: packages/bot/src/transformers/types.ts:215
1-32 character name matching lowercase ^[\w-]{1,32}$
nameLocalizations?
optional
nameLocalizations:Partial
<Record
<Locales
,string
>>
Defined in: packages/bot/src/transformers/types.ts:217
Localization object for the name
field. Values follow the same restrictions as name
options?
optional
options:ApplicationCommandOption
[]
Defined in: packages/bot/src/transformers/types.ts:227
If the option is a subcommand or subcommand group type, this nested options will be the parameters
required?
optional
required:boolean
Defined in: packages/bot/src/transformers/types.ts:223
If the parameter is required or optional--default false
type
Defined in: packages/bot/src/transformers/types.ts:213
Value of Application Command Option Type