Scheduled events
listEvents
$listEvents
Returns the scheduled events of the server as a JSON array. This function is a Bot Creator extension: it does not exist in the official BDFD wiki. It runs the same Discord logic as the matching action.
Syntax
$listEvents
Return Value
- Type: String (JSON)
- A JSON array of events (ID, name, description, start, end, status, location); empty array when none. Read it with the
$jsonfunctions.
Behavior
- No special permission is needed.
Examples
$jsonParse[$listEvents]
$jsonArrayCount
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.