Skip to content

$setAutomodExemptRoles

$setAutomodExemptRoles will exclude roles for the given automod rule.

Usage

$setAutomodExemptRoles[...roles]

Parameters

FieldTypeDescriptionRequired
…rolesnumberThe roles to exclude.true

Example(s)

This will create a new automod rule with the BlockMessage action and one excluded role.

1
client.command({
2
name: "setAutomodExemptRoles",
3
code: `
4
$createAutomodRule[$guildid;Automod Rule;true;Creating a new rule!]
5
$setAutomodPreset[Slurs]
6
$setAutomodType[Keyword]
7
$setAutomodExemptRoles[$findRole[Support]]
8
$setAutomodActions[BlockMessage;$channelId;60;You tried to say slurs, you got blocked!]
9
`
10
});