Discord · Schema

ApplicationCommandSubcommandGroupOptionResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
type integer
name string
name_localized stringnull
name_localizations objectnull
description string
description_localized stringnull
description_localizations objectnull
required booleannull
options arraynull
View JSON Schema on GitHub

JSON Schema

discord-applicationcommandsubcommandgroupoptionresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ApplicationCommandSubcommandGroupOptionResponse",
  "title": "ApplicationCommandSubcommandGroupOptionResponse",
  "type": "object",
  "properties": {
    "type": {
      "type": "integer",
      "enum": [
        2
      ],
      "allOf": [
        {
          "$ref": "#/components/schemas/ApplicationCommandOptionType"
        }
      ],
      "format": "int32"
    },
    "name": {
      "type": "string"
    },
    "name_localized": {
      "type": [
        "string",
        "null"
      ]
    },
    "name_localizations": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "description": {
      "type": "string"
    },
    "description_localized": {
      "type": [
        "string",
        "null"
      ]
    },
    "description_localizations": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "required": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/ApplicationCommandSubcommandOptionResponse"
      }
    }
  },
  "required": [
    "type",
    "name",
    "description"
  ]
}