$addSelectMenu
Adds a select menu to this action row.
Usage
$addSelectMenu[customID;placeholder;minValues;maxValues;disabled]Param
Description
Type
Required
bot.addEvent([
"onMessage",
"onInteraction" //This is what you need to add
])Example
bot.commands.add({
type: "basicCommand",
name: "menu",
code: `A menu!
$addActionRow
$addSelectMenu[menu_1;Hi;1;1]
$addSelectMenuOption[hi;im uwu;hi]
$addSelectMenuOption[fiction;nice stuff;fiction]`
})
bot.commands.add({
type: "selectMenuCommand",
code: `Interaction Value: $interactionValues | Interaction ID: $interactionID`
})Last updated
Was this helpful?