Skip to content
Components & Interactions isButton

$isButton — Returns whether the interaction is a button

Returns whether the interaction is a button

Syntax

$isButton

Parameters

None.

Return Value

  • Boolean.

Usage

$isButton → result

Example

$isButton

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.