"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModuleHandler = void 0;
var ModuleHandler = /** @class */ (function () {
    function ModuleHandler(handler, params) {
        if (!params.commands && !params.pattern && !params.scope) {
            throw new Error('You must at least provide one of: commands, pattern and scope');
        }
        this.handler = handler;
        this.params = params;
    }
    return ModuleHandler;
}());
exports.ModuleHandler = ModuleHandler;
