Build chat bots with blocks

🔔 when (event) do (statement)

In Discord → Events

Jump to block

Run code when an event occurs, such as your bot receiving a message.

Requires the following blocks to be present in the project: discord login


Parameter name Parameter type Required? Description
event any The event to bind to.
statement statements… The statements to run when the event is received.


void - This is a statement with no outputs