Skip to content
AutoMod deleteAutoModRule

$deleteAutoModRule

Deletes a Discord AutoMod rule. This function is a Bot Creator extension: it does not exist in the official BDFD wiki. It runs the same Discord logic as the matching block.

Syntax

$deleteAutoModRule[ruleID]

Parameters

Parameter Description
ruleID Required. The ID of the rule (see $listAutoModRules).

Return Value

  • Type: String
  • Always empty.

Behavior

  • The bot needs Manage Server in the guild.

Examples

$deleteAutoModRule[123456789012345678]

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.