$onInteraction

Callback

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 $displayName!] $endif
!example Click Interaction ID: interaction Hello! !example Click Interaction ID: onlyauthor-$authorID Hello Nicky! !example Click Interaction ID: onlyauthor-$authorID Hello MineBartekSA! I can't use the button

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