Skip to main content

ApplicationCommandOption

@discordeno/botDocs


Documentation / @discordeno/bot / ApplicationCommandOption

Interface: ApplicationCommandOption

Properties

autocomplete?

optional autocomplete: boolean

if autocomplete interactions are enabled for this String, Integer, or Number type option

Defined in

packages/bot/src/transformers/types.ts:240


channelTypes?

optional channelTypes: ChannelTypes[]

If the option is a channel type, the channels shown will be restricted to these types

Defined in

packages/bot/src/transformers/types.ts:230


choices?

optional choices: ApplicationCommandOptionChoice[]

Choices for string and int types for the user to pick from

Defined in

packages/bot/src/transformers/types.ts:226


description

description: string

1-100 character description

Defined in

packages/bot/src/transformers/types.ts:220


descriptionLocalizations?

optional descriptionLocalizations: Partial<Record<Locales, string>>

Localization object for the description field. Values follow the same restrictions as description

Defined in

packages/bot/src/transformers/types.ts:222


maxLength?

optional maxLength: number

Maximum length desired.

Defined in

packages/bot/src/transformers/types.ts:238


maxValue?

optional maxValue: number

Maximum number desired.

Defined in

packages/bot/src/transformers/types.ts:234


minLength?

optional minLength: number

Minimum length desired.

Defined in

packages/bot/src/transformers/types.ts:236


minValue?

optional minValue: number

Minimum number desired.

Defined in

packages/bot/src/transformers/types.ts:232


name

name: string

1-32 character name matching lowercase ^[\w-]{1,32}$

Defined in

packages/bot/src/transformers/types.ts:216


nameLocalizations?

optional nameLocalizations: Partial<Record<Locales, string>>

Localization object for the name field. Values follow the same restrictions as name

Defined in

packages/bot/src/transformers/types.ts:218


options?

optional options: ApplicationCommandOption[]

If the option is a subcommand or subcommand group type, this nested options will be the parameters

Defined in

packages/bot/src/transformers/types.ts:228


required?

optional required: boolean

If the parameter is required or optional--default false

Defined in

packages/bot/src/transformers/types.ts:224


type

type: ApplicationCommandOptionTypes

Value of Application Command Option Type

Defined in

packages/bot/src/transformers/types.ts:214