SelectMenusManager
Create an handler for bot select-menus. The select-menus can be in as many subfolders as desired and there may be other files exporting something else.
Constructor
js
new SelectMenusManager(client, options);
Name | Type | Description | Default | Optional |
---|---|---|---|---|
client | ShewenyClient | The client | None | No |
options | SelectMenuOptions | Options of the select-menus manager | None | No |
Properties
Events
Properties
client
The framework client.
Return : ShewenyClient
directory
The directory of selectMenus.
Return : String
selectMenus
The collection of loaded selectMenus.
Return : Collection<SelectMenu>
Methods
loadAll()
Load all select-menus in directory of select-menus.
Return : Promise<Collection<Array<String>, SelectMenu>>
unloadAll()
Unload all select-menus.
Return : void
Events
cooldownLimit
Emitted when user hit the cooldown limit.
Parameters :
Name | Type | Description |
---|---|---|
interaction | CommandInteraction | The interaction |
time | Number | The time before run again |