Interface MessageCommandInterface

Represents the structure of a message command.

Hierarchy

  • CommandInterface
    • MessageCommandInterface

Properties

aliases?: string | 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. If not provided the directory name is used.

description?: 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

insensitive?: boolean

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

Default Value

true

metadata?: unknown

Additional metadata associated with the command.

name: string

The name of the command.

usage?: string | string[]

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

Generated using TypeDoc