UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

23 lines (22 loc) 1.05 kB
/*! * 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 { CacheType, GuildCacheMessage, ModalSubmitInteraction } from "discord.js"; import { ExtraCommandReplyInteractionOptions } from "../../types/types.js"; import { RexUpdateReplyInteractionBase } from "../replyUpdateBase.js"; export declare class RexModalSubmitInteraction extends RexUpdateReplyInteractionBase { inter: ModalSubmitInteraction; constructor(inter: ModalSubmitInteraction, opt?: ExtraCommandReplyInteractionOptions); /** * Whether the modal was created with a component interaction * @returns boolean */ isFromMessage(): this is RexModalSubmitInteraction & { message: GuildCacheMessage<CacheType>; }; get message(): GuildCacheMessage<CacheType> | null; get components(): import("discord.js").ActionRowModalData[]; get fields(): import("discord.js").ModalSubmitFields; }