Skip to content

$isCommandInteraction

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

Usage

$isCommandInteraction

Example(s)

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

1
client.command({
2
name: "isCommandInteraction",
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
$isCommandInteraction
13
$interactionReply[Hello World!;everyone;false]
14
`
15
});```