UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

23 lines (22 loc) 929 B
"use strict"; /*! * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.RexReplyModalInteractionBase = void 0; const modalSubmit_js_1 = require("./modal/modalSubmit.js"); const replyBase_js_1 = require("./replyBase.js"); class RexReplyModalInteractionBase extends replyBase_js_1.RexReplyInteractionBase { constructor(inter, opt) { super(inter, opt); } showModal(modal) { return this.asignLastRequest(this.inter.showModal(modal)); } awaitModalSubmit(options) { return this.inter.awaitModalSubmit(options).then(modalInter => new modalSubmit_js_1.RexModalSubmitInteraction(modalInter)); } } exports.RexReplyModalInteractionBase = RexReplyModalInteractionBase;