$alertCount returns the number of alerts of the current server. Reading does not need Manage Server.

## Parameters

| Parameter | Description |
|---|---|
| `active` | Optional. The word `active` counts only the alerts that are running. |

## Examples

```bdfd
This server has $alertCount[active] active alerts out of $alertCount.
```

## JavaScript bots

`await bc.alert.count({ activeOnly? })` returns a number.
