Command

This is the full specification of the Command Class

Setters

Name

Type

Description

name

string

The name of the command, like it should display in Help

description

string

The description of the command like it should display in Help

invokes

string[]

An array of strings that can be used to invoke the command, no spaces allowed

usage

string

A string that will be appended to the invokes in the help command, explaining how to use the command

permissions

string[]

An array of Discord permission strings that may execute the command

category

string

The name of the category to add the command to

execute

(message: Message, options: any) => Promise<void>

The async function to execute when the command is called

omitHelp

boolean

Whether to omit the command from help

Getters

Name

Type

Description

command

The command object that will be used later

Last updated