Discord · Schema

SelectOptionResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
label string
value string
description stringnull
emoji object
default booleannull
View JSON Schema on GitHub

JSON Schema

discord-selectoptionresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SelectOptionResponse",
  "title": "SelectOptionResponse",
  "type": "object",
  "properties": {
    "label": {
      "type": "string"
    },
    "value": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "emoji": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/MessageComponentEmojiResponse"
        }
      ]
    },
    "default": {
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "required": [
    "label",
    "value"
  ]
}