Skip to content
Moderation editAutomodRule

$editAutomodRule — Edits an automod rule on a guild, returns bool

Edits an automod rule on a guild, returns bool

Syntax

$editAutomodRule[guildID;ruleID;(name);(event);(enabled);(reason)]

Parameters

  • guildID (id, required) — The guild to edit automod rule on
  • ruleID (id, required) — The automod rule to edit
  • name (text, optional) — The new name for the automod rule
  • event (text, optional) — The new event type for the automod rule
  • enabled (boolean, optional) — Whether the automod rule should be enabled
  • reason (text, optional) — The reason for editing the automod rule

Return Value

  • Boolean.

Usage

$editAutomodRule[guildID;ruleID;(name);(event);(enabled);(reason)] → result

Example

$sendMessage[$editAutomodRule[10;500;Renamed;;true]]

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.