Discord · Schema

GuildTemplateChannelResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
id integernull
type integer
name stringnull
position integernull
topic stringnull
bitrate integer
user_limit integer
nsfw boolean
rate_limit_per_user integer
parent_id object
default_auto_archive_duration object
permission_overwrites array
available_tags arraynull
template string
default_reaction_emoji object
default_thread_rate_limit_per_user integernull
default_sort_order object
default_forum_layout object
icon_emoji object
theme_color integernull
View JSON Schema on GitHub

JSON Schema

discord-guildtemplatechannelresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GuildTemplateChannelResponse",
  "title": "GuildTemplateChannelResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "type": {
      "type": "integer",
      "enum": [
        0,
        2,
        4
      ],
      "allOf": [
        {
          "$ref": "#/components/schemas/ChannelTypes"
        }
      ],
      "format": "int32"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "position": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "topic": {
      "type": [
        "string",
        "null"
      ]
    },
    "bitrate": {
      "type": "integer",
      "format": "int32"
    },
    "user_limit": {
      "type": "integer",
      "format": "int32"
    },
    "nsfw": {
      "type": "boolean"
    },
    "rate_limit_per_user": {
      "type": "integer",
      "format": "int32"
    },
    "parent_id": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/SnowflakeType"
        }
      ]
    },
    "default_auto_archive_duration": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ThreadAutoArchiveDuration"
        }
      ]
    },
    "permission_overwrites": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "null"
          },
          {
            "$ref": "#/components/schemas/ChannelPermissionOverwriteResponse"
          }
        ]
      }
    },
    "available_tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/GuildTemplateChannelTags"
      }
    },
    "template": {
      "type": "string"
    },
    "default_reaction_emoji": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/DefaultReactionEmojiResponse"
        }
      ]
    },
    "default_thread_rate_limit_per_user": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "default_sort_order": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ThreadSortOrder"
        }
      ]
    },
    "default_forum_layout": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ForumLayout"
        }
      ]
    },
    "icon_emoji": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/IconEmojiResponse"
        }
      ]
    },
    "theme_color": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    }
  },
  "required": [
    "type",
    "bitrate",
    "user_limit",
    "nsfw",
    "rate_limit_per_user",
    "permission_overwrites",
    "template"
  ]
}