$setAutomodRegexFilter
$setAutomodRegexFilter
will filter words according to the given regex of the automod rule.
Usage
$setAutomodRegexFilter[...regex]
Parameters
Field | Type | Description | Required |
---|---|---|---|
…regex | string | The regex to filter words for. | true |
Example(s)
This will create a new automod rule with the BlockMessage action and block of the word “Hello”.
1client.command({2 name: "setAutomodRegexFilter",3 code: `4 $createAutomodRule[$guildid;Automod Rule;true;Creating a new rule!]5 $setAutomodPreset[Slurs]6 $setAutomodType[Keyword]7 $setAutomodRegexFilter[/Hello/g]8 $setAutomodActions[BlockMessage;$channelId;60;You tried to say slurs, you got blocked!]9 `10});