Discord · Schema

CreateMessageInteractionCallbackRequest

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
type integer
data object
View JSON Schema on GitHub

JSON Schema

discord-createmessageinteractioncallbackrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateMessageInteractionCallbackRequest",
  "title": "CreateMessageInteractionCallbackRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "integer",
      "enum": [
        4,
        5
      ],
      "allOf": [
        {
          "$ref": "#/components/schemas/InteractionCallbackTypes"
        }
      ],
      "format": "int32"
    },
    "data": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/IncomingWebhookInteractionRequest"
        }
      ]
    }
  },
  "required": [
    "type"
  ]
}