UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

28 lines (27 loc) 1.07 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 { APIModalInteractionResponseCallbackData } from "discord-api-types/v10"; import { ModalBuilder, ModalComponentData, TextInputBuilder } from "discord.js"; export declare class RexModal extends ModalBuilder { /** * create a modal for in response to the interaction * @param customId custom ID for this modal */ constructor(customId: string, title: string); /** * create a modal for in response to the interaction * @param options modelOptions */ constructor(options: Partial<ModalComponentData | APIModalInteractionResponseCallbackData>); get customId(): string | undefined; get title(): string | undefined; /** * Add a action row and fill it with components * @param components Components for an modal * @returns */ addActionRow(...components: TextInputBuilder[]): this; }