Discord · Schema

CreateAutoModerationRuleRequest

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
name string
event_type integer
trigger_type integer
trigger_metadata object
actions array
enabled boolean
exempt_roles array
exempt_channels array
View JSON Schema on GitHub

JSON Schema

discord-createautomoderationrulerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateAutoModerationRuleRequest",
  "title": "CreateAutoModerationRuleRequest",
  "type": "object",
  "required": [
    "name",
    "event_type",
    "trigger_type",
    "actions"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "event_type": {
      "type": "integer"
    },
    "trigger_type": {
      "type": "integer"
    },
    "trigger_metadata": {
      "type": "object"
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "integer"
          },
          "metadata": {
            "type": "object"
          }
        }
      }
    },
    "enabled": {
      "type": "boolean",
      "default": false
    },
    "exempt_roles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Snowflake"
      }
    },
    "exempt_channels": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Snowflake"
      }
    }
  }
}