Discord · Schema

ApplicationCommandOptionChoice

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
name string
name_localizations object
value object
View JSON Schema on GitHub

JSON Schema

discord-applicationcommandoptionchoice-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ApplicationCommandOptionChoice",
  "title": "ApplicationCommandOptionChoice",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "name_localizations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "nullable": true
    },
    "value": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        },
        {
          "type": "number"
        }
      ]
    }
  },
  "required": [
    "name",
    "value"
  ]
}