nhandler
Version:
The easy to use, all-in-one command, event and component handler.
13 lines (12 loc) • 520 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createComponents = void 0;
const ComponentHandler_1 = require("../classes/ComponentHandler");
const createComponents = ({ client, debug = undefined, }) => {
if (!client)
throw new Error("createComponents(): Client is required.");
const handler = new ComponentHandler_1.ComponentHandler(debug ? console.log : undefined);
handler.setClient(client);
return handler;
};
exports.createComponents = createComponents;
;