{
  "$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"
  ]
}