SelectMenu
Represents a select-menu.
Constructor
js
new SelectMenu(client, options);
Name | Type | Description | Default | Optional |
---|---|---|---|---|
client | ShewenyClient | The client. | None | ✓ |
customId | Array<String | RegExp> | The list of select-menus ids | None | ✓ |
options | ButtonOptions | The options. | None | ✓ |
Properties
client
The framework client.
Return : ShewenyClient
enabled
If this structure is enabled or not.
manager
The manager of this structure.
Return : SelectMenusManager
path
The path of the file.
Return : String
customId
The custom id(s) of the select-menu.
Return : Array<String | RegExp>
Methods
before()
Executed before select menu(s) checks.
Parameters :
Name | Type | Description |
---|---|---|
interaction | SelectMenuInteraction | The interaction |
Return : Promise<any> | any
[abstract] execute()
The execution of select menu(s).
Parameters :
Name | Type | Description |
---|---|---|
interaction | SelectMenuInteraction | The interaction |
Return : Promise<any> | any
[async] register()
Register the select-menu.
Return : Promise<SelectMenu> | Null
[async] reload()
Reload a select-menus group.
Return : Promise<SelectMenu> | Null
unregister()
Unregister a select-menus group from the bot.
Return : Boolean