Automations
Premium
alertCount
$alertCount[]
$alertCount returns the number of alerts of the current server. Reading does not need Manage Server.
Premium Reserved for Premium accounts. See plans
Syntax
bdfd
$alertCount[(active)]
Parameters
| Parameter | Description |
|---|---|
active |
Optional. The word active counts only the alerts that are running. |
Examples
This server has $alertCount[active] active alerts out of $alertCount.
JavaScript bots
await bc.alert.count({ activeOnly? }) returns a number.
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.