UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

19 lines (18 loc) 727 B
/*! * 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/. */ import { RexModalSubmitInteraction } from "./modal/modalSubmit.js"; import { RexReplyInteractionBase } from "./replyBase.js"; export class RexReplyModalInteractionBase extends 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 RexModalSubmitInteraction(modalInter)); } }