Skip to content

$deleteAutomodRule

$deleteAutomodRule will delete a given automod rule.

Usage

$deleteAutomodRule[guildID;automodRuleName;reason?;force?]

Parameters

FieldTypeDescriptionRequired
guildIDnumberNew message content.true
automodRuleNamestringNew message content.true
reason?stringNew message content.true
force?booleanNew message content.true

Example(s)

This will delete an automod rule with the name “Block Words”:

1
client.command({
2
name: "deleteAutomodRule",
3
code: `
4
$deleteAutomodRule[$guildID;Block Words;Deleting this rule!;true]
5
`
6
});