Discord · Schema

DefaultKeywordListUpsertRequestPartial

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

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

JSON Schema

discord-defaultkeywordlistupsertrequestpartial-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DefaultKeywordListUpsertRequestPartial",
  "title": "DefaultKeywordListUpsertRequestPartial",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100
    },
    "event_type": {
      "$ref": "#/components/schemas/AutomodEventType"
    },
    "actions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/BlockMessageAction"
          },
          {
            "$ref": "#/components/schemas/FlagToChannelAction"
          },
          {
            "$ref": "#/components/schemas/QuarantineUserAction"
          },
          {
            "$ref": "#/components/schemas/UserCommunicationDisabledAction"
          }
        ]
      },
      "minItems": 1,
      "maxItems": 5
    },
    "enabled": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "exempt_roles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/SnowflakeType"
      },
      "maxItems": 20,
      "uniqueItems": true
    },
    "exempt_channels": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/SnowflakeType"
      },
      "maxItems": 50,
      "uniqueItems": true
    },
    "trigger_type": {
      "type": "integer",
      "enum": [
        4
      ],
      "allOf": [
        {
          "$ref": "#/components/schemas/AutomodTriggerType"
        }
      ],
      "format": "int32"
    },
    "trigger_metadata": {
      "$ref": "#/components/schemas/DefaultKeywordListTriggerMetadata"
    }
  }
}