Discord · Schema

InputText

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
type integer
custom_id string
style object
label string
value stringnull
placeholder stringnull
required booleannull
min_length integernull
max_length integernull
View JSON Schema on GitHub

JSON Schema

discord-inputtext-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/InputText",
  "title": "InputText",
  "type": "object",
  "properties": {
    "type": {
      "type": "integer",
      "enum": [
        4
      ],
      "allOf": [
        {
          "$ref": "#/components/schemas/MessageComponentTypes"
        }
      ],
      "format": "int32"
    },
    "custom_id": {
      "type": "string",
      "maxLength": 100
    },
    "style": {
      "$ref": "#/components/schemas/TextStyleTypes"
    },
    "label": {
      "type": "string",
      "maxLength": 45
    },
    "value": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 4000
    },
    "placeholder": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 100
    },
    "required": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "min_length": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 4000
    },
    "max_length": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 4000
    }
  },
  "required": [
    "type",
    "custom_id",
    "style",
    "label"
  ]
}