NumberConfig
Defined in: packages/core/src/commands.ts:56
An integer or number option.
Extends
Section titled “Extends”OptionConfig
Properties
Section titled “Properties”choices?
Section titled “choices?”
optionalchoices?: readonly (number| {name:string;value:number; })[]
Defined in: packages/core/src/commands.ts:61
default?
Section titled “default?”
optionaldefault?:number
Defined in: packages/core/src/commands.ts:57
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:60
optionalmin?:number
Defined in: packages/core/src/commands.ts:59
Smallest and largest accepted value.
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