UNPKG

nhandler

Version:

The easy to use, all-in-one command, event and component handler.

13 lines (12 loc) 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createCommands = void 0; const CommandHandler_1 = require("../classes/CommandHandler"); const createCommands = ({ client, debug = undefined, }) => { if (!client) throw new Error("createCommands(): Client is required."); const handler = new CommandHandler_1.CommandHandler(debug ? console.log : undefined); handler.setClient(client); return handler; }; exports.createCommands = createCommands;