Discord · Schema

CreateGuildChannelRequest

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
type object
name string
position integernull
topic stringnull
bitrate integernull
user_limit integernull
nsfw booleannull
rate_limit_per_user integernull
parent_id object
permission_overwrites arraynull
rtc_region stringnull
video_quality_mode object
default_auto_archive_duration object
default_reaction_emoji object
default_thread_rate_limit_per_user integernull
default_sort_order object
default_forum_layout object
available_tags arraynull
View JSON Schema on GitHub

JSON Schema

discord-createguildchannelrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateGuildChannelRequest",
  "title": "CreateGuildChannelRequest",
  "type": "object",
  "properties": {
    "type": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "integer",
          "enum": [
            0,
            2,
            4,
            5,
            13,
            14,
            15
          ],
          "allOf": [
            {
              "$ref": "#/components/schemas/ChannelTypes"
            }
          ],
          "format": "int32"
        }
      ]
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "position": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "format": "int32"
    },
    "topic": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 4096
    },
    "bitrate": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 8000,
      "format": "int32"
    },
    "user_limit": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "format": "int32"
    },
    "nsfw": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "rate_limit_per_user": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 21600
    },
    "parent_id": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/SnowflakeType"
        }
      ]
    },
    "permission_overwrites": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/ChannelPermissionOverwriteRequest"
      },
      "maxItems": 100
    },
    "rtc_region": {
      "type": [
        "string",
        "null"
      ]
    },
    "video_quality_mode": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/VideoQualityModes"
        }
      ]
    },
    "default_auto_archive_duration": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ThreadAutoArchiveDuration"
        }
      ]
    },
    "default_reaction_emoji": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/UpdateDefaultReactionEmojiRequest"
        }
      ]
    },
    "default_thread_rate_limit_per_user": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 21600
    },
    "default_sort_order": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ThreadSortOrder"
        }
      ]
    },
    "default_forum_layout": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ForumLayout"
        }
      ]
    },
    "available_tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "oneOf": [
          {
            "type": "null"
          },
          {
            "$ref": "#/components/schemas/CreateOrUpdateThreadTagRequest"
          }
        ]
      },
      "maxItems": 20
    }
  },
  "required": [
    "name"
  ]
}