Skip to content
AutoMod setAutomodAction

$setAutomodAction — Stages an action (BlockMessage, SendAlertMessage, Timeout, BlockMemberInteraction; 5 at most) for the next $editAutomodRule.

Stages an action (BlockMessage, SendAlertMessage, Timeout, BlockMemberInteraction; 5 at most) for the next $editAutomodRule.

Syntax

$setAutomodAction[type;(channelID);(duration);(message)]

Parameters

  • type (String, required) — Action type
  • channelID (String, optional) — Alert channel (alert action)
  • duration (String, optional) — Timeout in seconds (timeout action)
  • message (String, optional) — Message shown when blocked, 150 characters at most

Return Value

  • None.

Usage

$setAutomodAction[type;channelID;duration;message] → result

Example

$sendMessage[$setAutomodAction[type;channelID;duration;message]]

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.