Skip to content
On this page

SelectMenu

Represents a select-menu.

Constructor

js
new SelectMenu(client, options);
NameTypeDescriptionDefaultOptional
clientShewenyClientThe client.None
customIdArray<String | RegExp>The list of select-menus idsNone
optionsButtonOptionsThe options.None
Properties
Methods

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 :

NameTypeDescription
interactionSelectMenuInteractionThe interaction

Return : Promise<any> | any

[abstract] execute()

The execution of select menu(s).

Parameters :

NameTypeDescription
interactionSelectMenuInteractionThe 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