Discord · Schema

PrivateChannelResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
id object
type integer
last_message_id object
flags integer
last_pin_timestamp stringnull
recipients array
View JSON Schema on GitHub

JSON Schema

discord-privatechannelresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PrivateChannelResponse",
  "title": "PrivateChannelResponse",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/SnowflakeType"
    },
    "type": {
      "type": "integer",
      "enum": [
        1
      ],
      "allOf": [
        {
          "$ref": "#/components/schemas/ChannelTypes"
        }
      ],
      "format": "int32"
    },
    "last_message_id": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/SnowflakeType"
        }
      ]
    },
    "flags": {
      "type": "integer",
      "format": "int32"
    },
    "last_pin_timestamp": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "recipients": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserResponse"
      }
    }
  },
  "required": [
    "id",
    "type",
    "flags",
    "recipients"
  ]
}