Interface CommandFileProps

interface CommandFileProps {
    data: Command;
    guild?: string[];
    execute(interaction: ChatInputCommandInteraction): Promise<void>;
}

Properties

Methods

Properties

data: Command

The command data obiect.

guild?: string[]

If not specified, the command will be registered globally. If specified, the command will be registered only in the specified guilds.

Methods

  • This should run when the command is executed by a user.

    Parameters

    • interaction: ChatInputCommandInteraction

    Returns Promise<void>