Skip to main content
Module

x/harmony/mod.ts>ApplicationCommandOptionBase

An easy to use Discord API Library for Deno.
Latest
interface ApplicationCommandOptionBase
import { type ApplicationCommandOptionBase } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Type Parameters

optional
T = unknown
optional
OptionType = ApplicationCommandOptionType

Properties

name: string

Name of the option.

description: string

Description of the Option.

Option type

optional
required: boolean

Whether the option is required or not, false by default

optional
default: boolean
optional
choices: ApplicationCommandChoice[]

Optional choices out of which User can choose value

optional
options: T[]

Nested options for Sub-Command or Sub-Command-Groups

optional
autocomplete: boolean

Whether this Option supports realtime autocomplete