Skip to content
Automations Premium pauseAlert

$pauseAlert[]

$pauseAlert pauses one alert of the current server. The author of the command must have Manage Server.

Premium Reserved for Premium accounts. See plans

Syntax

bdfd
$pauseAlert[alertID]

Parameters

Parameter Description
alertID Required. The ID of the alert, from $alertList or $createAlert[...;yes].

Behavior

  • A paused alert keeps its settings and stops posting.
  • Errors (the message starts with the code): alert_forbidden (the author lacks Manage Server), alert_guild_required (used outside a server), alert_not_enabled (the bot owner has not turned alerts on), alert_paid_required (the owner has no paid plan), alert_unavailable (the bot does not run on a runner connected to the Manager). Also alert_not_found when the ID is not an alert of this server.

Examples

$onlyPerms[manageServer;You need Manage Server.]
$pauseAlert[$message[1]]
Done.

JavaScript bots

await bc.alert.pause(id). A failing call rejects with an AlertError.

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.