Skip to content
On this page

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);
NameTypeDescriptionDefaultOptional
clientShewenyClientThe clientNoneNo
optionsSelectMenuOptionsOptions of the select-menus managerNoneNo
Properties
Methods
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 :

NameTypeDescription
interactionCommandInteractionThe interaction
timeNumberThe time before run again