Discord · Schema

MessageInteractionResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
id object
type object
name string
user object
name_localized stringnull
View JSON Schema on GitHub

JSON Schema

discord-messageinteractionresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MessageInteractionResponse",
  "title": "MessageInteractionResponse",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/SnowflakeType"
    },
    "type": {
      "$ref": "#/components/schemas/InteractionTypes"
    },
    "name": {
      "type": "string"
    },
    "user": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/UserResponse"
        }
      ]
    },
    "name_localized": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "type",
    "name"
  ]
}