$isComponentInteraction
$isComponentInteraction
will return either true or false depending on the type of interaction.
Usage
$isComponentInteraction
Example(s)
This will return true
because the button
is a component interaction command.
1client.command({2 name: "isComponentInteraction",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 $isComponentInteraction13 $interactionReply[Hello World!;everyone;false]14 `15 });