🔔 when (event) do (statement)
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
Parameters
Parameter name | Parameter type | Required? | Description |
---|---|---|---|
event | any | ✓ | The event to bind to. |
statement | statements… | ✓ | The statements to run when the event is received. |
Output
void - This is a statement with no outputs