sheweny
Version:
The powerful framework for create discord bots
37 lines (36 loc) • 1.29 kB
TypeScript
import { BaseManager } from './index.js';
import { SelectMenu } from '../structures/index.js';
import { Collection } from 'discord.js';
import type { ShewenyClient } from '../client/Client.js';
import type { CustomId, SelectMenusManagerDefaultOptions, SelectMenusManagerOptions } from '../typescript/index.js';
/**
* Manager for Select Menus
*/
export declare class SelectMenusManager extends BaseManager {
/**
* Default data for the buttons
* @type {SelectMenusManagerDefaultOptions}
*/
default?: SelectMenusManagerDefaultOptions;
/**
* Collection of the select menus
* @type {Collection<CustomId, SelectMenu[]> | undefined}
*/
selectMenus?: Collection<CustomId, SelectMenu[]>;
/**
* Constructor to manage select menus
* @param {ShewenyClient} [client] Client framework
* @param {SelectMenusManagerOptions} [options] The options of the manager
*/
constructor(client: ShewenyClient, options: SelectMenusManagerOptions);
/**
* Load all select menus in collection
* @returns {Promise<Collection<string[], SelectMenu[]> | undefined>}
*/
loadAll(): Promise<Collection<CustomId, SelectMenu[]> | undefined>;
/**
* Unload all selectMenus
* @returns {void}
*/
unloadAll(): void;
}