UNPKG

sheweny

Version:

The powerful framework for create discord bots

37 lines (36 loc) 1.18 kB
import { BaseManager } from './index.js'; import { Modal } from '../structures/index.js'; import { Collection } from 'discord.js'; import type { ShewenyClient } from '../client/Client.js'; import type { CustomId, ModalsManagerDefaultOptions, ModalsManagerOptions } from '../typescript/index.js'; /** * Manager for Modals */ export declare class ModalsManager extends BaseManager { /** * Default data for the buttons * @type {ModalsManagerDefaultOptions} */ default?: ModalsManagerDefaultOptions; /** * Collection of modals * @type {Collection<CustomId, Modal> | undefined} */ modals?: Collection<CustomId, Modal[]>; /** * Constructor to manage modals * @param {ShewenyClient} [client] Client framework * @param {boolean} [options] The options of the manager */ constructor(client: ShewenyClient, options: ModalsManagerOptions); /** * Load all modals in collection * @returns {Promise<Collection<CustomId, Modal> | undefined>} */ loadAll(): Promise<Collection<CustomId, Modal[]> | undefined>; /** * Unload all modals * @returns {void} */ unloadAll(): void; }