Class NumberArgumentAbstract

Represents a number command argument.

Example

class MyArgument extends NumberArgument {
name = 'my-argument';
}

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

choices: number[] = []

The choices of the argument.

command: Command

The command the argument belongs to.

default?: number

The default value of the argument.

description?: string

The description of the argument.

max?: number

The max value of the argument.

min?: number

The min value of the argument.

name: string

The name of the argument.

required: boolean = true

Whether the argument is required.

Accessors

Methods