.runCommand()

Runs a command | Function

.runCommand(command, args, message, interaction)
Parameter
Description
Type

command

The Command instance

args

The Command arguments

String[]

message

The Message instance

interaction

The CommandInteraction instance

Returns

Promise<{
        response: string;
        reply: boolean;
        deferReply?: undefined;
} | {
        response: any;
        deferReply: boolean | "ephemeral";
        reply: boolean;
} | undefined>

Last updated