Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface ApplicationCommandOption
import { type ApplicationCommandOption } from "https://deno.land/x/discordeno@17.0.1/transformers/applicationCommandOption.ts";

Properties

type: ApplicationCommandOptionTypes

Value of Application Command Option Type

name: string

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

optional
nameLocalizations: Localization

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

description: string

1-100 character description

optional
descriptionLocalizations: Localization

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

optional
required: boolean

If the parameter is required or optional--default false

optional
choices: ApplicationCommandOptionChoice[]

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

optional
options: ApplicationCommandOption[]

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

optional
channelTypes: ChannelTypes[]

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

optional
minValue: number

Minimum number desired.

optional
maxValue: number

Maximum number desired.

optional
minLength: number

Minimum length desired.

optional
maxLength: number

Maximum length desired.

optional
autocomplete: boolean

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