Class MessageCommand

Represents a message command.

Hierarchy

  • Command
    • MessageCommand

Constructors

Properties

aliases: string[]

An array of aliases for the command.

allowBots: boolean

Whether the command should allow bots or not.

alwaysExecute: boolean

Whether the command should be executed regardless of the prefix and trigger.

category: string

The category the command belongs to.

description: null | string

A short description of the command.

disabled: boolean

Whether the command should be ignored or not.

execute: ((this: MessageCommand, data: MessageCommandData<boolean>, metadata: MessageCommandMetadata) => unknown)

Type declaration

id: string

The unique id of the command.

insensitive: boolean

Whether the trigger of the command should be case insensitive or not.

metadata: unknown

Additional metadata associated with the command.

name: string

The name of the command.

path: string

The file path of the command implementation.

usage: string[]

A string or an array of strings describing the usage of the command.

Generated using TypeDoc