Skip to content

NumberConfig

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

An integer or number option.

  • OptionConfig

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

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


optional default?: number

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


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:60


optional min?: number

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

Smallest and largest accepted value.


optional required?: boolean

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

Whether the command cannot run without it.

OptionConfig.required