Skip to content

$setAutomodActions

$setAutomodActions will set the taken action for the provided automod rule.

Usage

$setAutomodActions[type;channel;durationSeconds;customMessage?]

Parameters

FieldTypeDescriptionRequired
typestringThe action type.true
channelnumberThe log channel.true
durationSeconds?numberThe duration of the timeout in seconds.true
customMessage?stringThe custom message to display.true

Automod Actions

TypeId
BlockMessage1
SendAlertMessage2
Timeout3

Example(s)

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

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