Yurba.js Documentation
    Preparing search index...

    Type Alias CommandHandler

    CommandHandler: (message: Message, args: CommandArgsSchema) => Promise<void>

    The handler function type for a command.

    Type declaration

    const handler: CommandHandler = async (message, args) => {
    // args.name, args.age, etc.
    console.log(args);
    };