Skip to content

$setAutomodPreset

$setAutomodPreset will set the keyword preset for blocked words of automod rules.

Usage

$setAutomodPreset[...presets]

Parameters

FieldTypeDescriptionRequired
…presetsstringThe preset type.true

Automod Presets

TypeId
Profanity1
SexualContent2
Slurs3

Example(s)

This will create a new automod rule with the BlockMessage action.

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