Skip to content

$isButtonInteraction

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

Usage

$isButtonInteraction

Example(s)

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

1
client.command({
2
name: "isButtonInteraction",
3
code: `
4
Hello!
5
$addButton[1;Click Me!;primary;ButtonID;false]
6
`
7
},{
8
name: "ButtonID",
9
type: "interaction",
10
prototype: "button",
11
code:`
12
$isButtonInteraction
13
$interactionReply[Hello World!;everyone;false]
14
`
15
});