Skip to content

StringConfig

Defined in: packages/core/src/commands.ts:46

A string option.

  • OptionConfig

optional choices?: readonly (string | { name: string; value: string; })[]

Defined in: packages/core/src/commands.ts:52

Allowed values, as plain text or { name, value } pairs.


optional default?: string

Defined in: packages/core/src/commands.ts:47


optional description?: string

Defined in: packages/core/src/commands.ts:40

Shown in Discord’s command picker (1-100 characters). Defaults to the option’s name.

OptionConfig.description


optional max?: number

Defined in: packages/core/src/commands.ts:50


optional min?: number

Defined in: packages/core/src/commands.ts:49

Shortest and longest accepted text.


optional required?: boolean

Defined in: packages/core/src/commands.ts:42

Whether the command cannot run without it.

OptionConfig.required