Function create

  • Create a instance of the command helper utility. You pass in a droff client and specify a prefix or prefix function.

    Example:

    import * as Commands from "droff-commands";

    const createCommand = Commands.create(client)("!");

    const createCommandWithCustomPrefix = Commands.create(client)(async (guild) =>
    getPrefixForGuild(guild),
    );

    Type Parameters

    • M

    Parameters

    Returns CreateCommandFn<M>

Generated using TypeDoc