ApplicationCommandOption
Documentation / @discordeno/bot / ApplicationCommandOption
Interface: ApplicationCommandOption
Defined in: bot/src/transformers/types.ts:212
Properties
autocomplete?
optionalautocomplete:boolean
Defined in: bot/src/transformers/types.ts:240
if autocomplete interactions are enabled for this String, Integer, or Number type option
channelTypes?
optionalchannelTypes:ChannelTypes[]
Defined in: bot/src/transformers/types.ts:230
If the option is a channel type, the channels shown will be restricted to these types
choices?
optionalchoices:ApplicationCommandOptionChoice[]
Defined in: bot/src/transformers/types.ts:226
Choices for string and int types for the user to pick from
description
description:
string
Defined in: bot/src/transformers/types.ts:220
1-100 character description
descriptionLocalizations?
optionaldescriptionLocalizations:Partial<Record<Locales,string>>
Defined in: bot/src/transformers/types.ts:222
Localization object for the description field. Values follow the same restrictions as description
maxLength?
optionalmaxLength:number
Defined in: bot/src/transformers/types.ts:238
Maximum length desired.
maxValue?
optionalmaxValue:number
Defined in: bot/src/transformers/types.ts:234
Maximum number desired.
minLength?
optionalminLength:number
Defined in: bot/src/transformers/types.ts:236
Minimum length desired.
minValue?
optionalminValue:number
Defined in: bot/src/transformers/types.ts:232
Minimum number desired.
name
name:
string
Defined in: bot/src/transformers/types.ts:216
1-32 character name matching lowercase ^[\w-]{1,32}$
nameLocalizations?
optionalnameLocalizations:Partial<Record<Locales,string>>
Defined in: bot/src/transformers/types.ts:218
Localization object for the name field. Values follow the same restrictions as name
options?
optionaloptions:ApplicationCommandOption[]
Defined in: bot/src/transformers/types.ts:228
If the option is a subcommand or subcommand group type, this nested options will be the parameters
required?
optionalrequired:boolean
Defined in: bot/src/transformers/types.ts:224
If the parameter is required or optional--default false
type
Defined in: bot/src/transformers/types.ts:214
Value of Application Command Option Type