Skip to main content
Version: 1.x

CommandObject

CommandObject​

Represents the properties of a command, including its data and options.

Signature
interface CommandObject {
category: string | null;
data: CommandData;
filePath: string;
options: CommandOptions;
}

category​

property
string | null

The category of the command.

data​

property

The command data, which includes the name, description, and options.

filePath​

property
string

The file path of the command.

options​

The function to run when the command is executed.