$setAutomodActions
$setAutomodActions
will set the taken action for the provided automod rule.
Usage
$setAutomodActions[type;channel;durationSeconds;customMessage?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
type | string | The action type. | true |
channel | number | The log channel. | true |
durationSeconds? | number | The duration of the timeout in seconds. | true |
customMessage? | string | The custom message to display. | true |
Automod Actions
Type | Id |
---|---|
BlockMessage | 1 |
SendAlertMessage | 2 |
Timeout | 3 |
Example(s)
This will create a new automod rule with the BlockMessage action.
1client.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});