Skip to main content
Module

x/natico/mod.ts>ApplicationCommandOption

A powerful and customizable framework for Discordeno
Latest
interface ApplicationCommandOption
Re-export
import { type ApplicationCommandOption } from "https://deno.land/x/natico@4.0.0-pre.4/mod.ts";

Properties

Value of Application Command Option Type

name: string

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

description: string

1-100 character description

optional
required: boolean

If the parameter is required or optional--default false

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
autocomplete: boolean

Whether this option should make autocomplete interactions.

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.