$addSelectMenu
Adds a select menu to this action row.
Last updated
Was this helpful?
Adds a select menu to this action row.
Last updated
Was this helpful?
This function has five parms.
customID
The customID of this select menu.
String
Yes
placeholder
The select menu's placeholder.
String
Yes
minValues
The minimum amount of options that the user can select.
Integer
Yes
maxValues
The maximum amount of options that the user can select.
Integer
Yes
disabled
Whether this select menu should be disabled or not.
Boolean
Yes
Select menus must be sent inside an action row (refer to ).
An action row can contain only one select menu.
An action row containing a select menu cannot also contain buttons.
Don't forget to add the onInteraction
event to your main file. For example:
for more info about$addSelectMenuOption[]