$buttonID

Returns the Button ID that triggered the command. Returns undefined if the trigger isn't Button.

Usage

$buttonID