Skip to content

$isSelectMenuInteraction

$isSelectMenuInteraction will return either true or false depending on the type of interaction.

Usage

$isSelectMenuInteraction

Example(s)

This will return true because the function is used within a selectMenu interaction command.

1
client.command({
2
name: "isSelectMenuInteraction",
3
code: `
4
Hello!
5
$addSelectMenu[1;string;SelectMenu;This is a placeholder!;1;1;false;A Option:Description of option A:optionID]
6
`
7
},{
8
name: "SelectMenu",
9
type: "interaction",
10
prototype: "selectMenu",
11
code:`
12
$isSelectMenuInteraction
13
$interactionReply[Bye;everyone;false]
14
`
15
});