Skip to content

$setAutomodType

$setAutomodType will set the automod type.

Usage

$setAutomodType[type]

Parameters

FieldTypeDescriptionRequired
typestringThe automod type.true

Automod Types

TypeId
Keyword1
Spam3
KeywordPreset4
MentionSpam5

Example(s)

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

1
client.command({
2
name: "setAutomodType",
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
});