AutoMod
listAutoModRules
$listAutoModRules
Returns the guild’s AutoMod rules as a JSON array. This function is a Bot Creator extension: it does not exist in the official BDFD wiki. It runs the same Discord logic as the matching block.
Syntax
$listAutoModRules
Return Value
- Type: String (JSON)
- A JSON array of the rules; an empty array when there are none. Read it with the
$jsonfunctions.
Behavior
- The bot needs Manage Server in the guild.
Examples
$jsonParse[$listAutoModRules]
$jsonArrayCount
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.