Skip to main content

Interface: Command

types/types.Command

Properties

aliases

Optional aliases: (string | string[])[]

A list of aliases for this command. Check the docs for more info.

Defined in

src/types/types.ts:21


description

Optional description: string

A description for your command that will be shown in the help command.

Defined in

src/types/types.ts:15


handler

handler: CommandHandler

The function that will handle any calls to this command (except for any subcommands).

Defined in

src/types/types.ts:26


hidden

Optional hidden: boolean

Whether the command should be hidden from the help Command. NOTE: This is not a way to protect your admin commands!

Default

false

Defined in

src/types/types.ts:39


subcommands

Optional subcommands: CommandMap

A CommandMap with subcommands in it. Check the docs for more info.

Defined in

src/types/types.ts:32