Automations
Premium
alertInfo
$alertInfo[]
$alertInfo returns one field of an alert of the current server. Reading does not need Manage Server.
Premium Reserved for Premium accounts. See plans
Syntax
bdfd
$alertInfo[alertID;field]
Parameters
| Parameter | Description |
|---|---|
alertID |
Required. The ID of the alert. |
field |
Required. id, name, source, kind, channelID, action, status or lastError. |
Behavior
statusisactiveorpaused.lastErroris empty when the last check went well.- An ID that is not an alert of this server fails with
alert_not_found.
Examples
$alertInfo[$message[1];status]
JavaScript bots
await bc.alert.info(id) returns { id, name, source, kind, channelId, action, status, lastError }.
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.