$onInteraction

Triggered upon an interaction being emitted (e.g. a button being clicked).

Syntax

$onInteraction

Supports

Example

$nomention
$if[$customID==interaction]
  $sendMessage[Hello!]
$endif

$if[$customID==onlyauthor-$authorID]
  $sendMessage[Hello $username!]
$endif

example
example

How $if[] or $customID[] works?