UNPKG

nhandler

Version:

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

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