UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

22 lines (20 loc) 720 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SlashCommandsModify = void 0; class SlashCommandsModify { constructor(manager, appId) { this.manager = manager; this.appId = appId; } modifySlashCommand(slashCommand) { return Promise.resolve(this.manager.modifyCommand(this.appId, slashCommand)); } disableSlashCommand(command) { return Promise.resolve(this.manager.disableCommand(this.appId, command)); } enableSlashCommand(command) { return Promise.resolve(this.manager.enableCommand(this.appId, command)); } } exports.SlashCommandsModify = SlashCommandsModify; //# sourceMappingURL=SlashCommandsModify.js.map