UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

38 lines (37 loc) 1.27 kB
"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.RexComponentInteractionBase = void 0; const modalSubmit_js_1 = require("../modal/modalSubmit.js"); const replyUpdateBase_js_1 = require("../replyUpdateBase.js"); class RexComponentInteractionBase extends replyUpdateBase_js_1.RexUpdateReplyInteractionBase { constructor(inter, opt) { super(inter, opt); } get message() { return this.inter.message; } get component() { return this.inter.component; } get componentType() { return this.inter.componentType; } get customId() { return this.inter.customId; } get version() { return this.inter.version; } 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.RexComponentInteractionBase = RexComponentInteractionBase;