Discord · Schema

CreateTextThreadWithoutMessageRequest

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
name string
auto_archive_duration object
rate_limit_per_user integernull
type object
invitable booleannull
View JSON Schema on GitHub

JSON Schema

discord-createtextthreadwithoutmessagerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateTextThreadWithoutMessageRequest",
  "title": "CreateTextThreadWithoutMessageRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "auto_archive_duration": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ThreadAutoArchiveDuration"
        }
      ]
    },
    "rate_limit_per_user": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 21600
    },
    "type": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "integer",
          "enum": [
            10,
            11,
            12
          ],
          "allOf": [
            {
              "$ref": "#/components/schemas/ChannelTypes"
            }
          ],
          "format": "int32"
        }
      ]
    },
    "invitable": {
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "required": [
    "name"
  ]
}