$setAutomodActions
$setAutomodActions
will set the taken action for the provided automod rule.
Usage
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.