Discord · Schema

Attachment

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
id object
filename string
description string
content_type string
size integer
url string
proxy_url string
height integer
width integer
ephemeral boolean
View JSON Schema on GitHub

JSON Schema

discord-attachment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Attachment",
  "title": "Attachment",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/Snowflake"
    },
    "filename": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "content_type": {
      "type": "string"
    },
    "size": {
      "type": "integer"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "proxy_url": {
      "type": "string",
      "format": "uri"
    },
    "height": {
      "type": "integer",
      "nullable": true
    },
    "width": {
      "type": "integer",
      "nullable": true
    },
    "ephemeral": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "filename",
    "size",
    "url",
    "proxy_url"
  ]
}