StringConfig
Defined in: packages/core/src/commands.ts:46
A string option.
Extends
Section titled “Extends”OptionConfig
Properties
Section titled “Properties”choices?
Section titled “choices?”
optionalchoices?: readonly (string| {name:string;value:string; })[]
Defined in: packages/core/src/commands.ts:52
Allowed values, as plain text or { name, value } pairs.
default?
Section titled “default?”
optionaldefault?:string
Defined in: packages/core/src/commands.ts:47
description?
Section titled “description?”
optionaldescription?:string
Defined in: packages/core/src/commands.ts:40
Shown in Discord’s command picker (1-100 characters). Defaults to the option’s name.
Inherited from
Section titled “Inherited from”OptionConfig.description
optionalmax?:number
Defined in: packages/core/src/commands.ts:50
optionalmin?:number
Defined in: packages/core/src/commands.ts:49
Shortest and longest accepted text.
required?
Section titled “required?”
optionalrequired?:boolean
Defined in: packages/core/src/commands.ts:42
Whether the command cannot run without it.
Inherited from
Section titled “Inherited from”OptionConfig.required