addedInput schema / properties / components
Added value: +{
+ "description": "Rich layout, in place of content and embeds. Sending this sets the Components V2 flag, which is permanent for that message: it can never show plain content or embeds afterward, so the two cannot be combined.",
+ "items": {
+ "properties": {
+ "accent_color": {
+ "description": "For container, hex color of the left edge, like #5865f2.",
+ "type": "string"
+ },
+ "buttons": {
+ "description": "For buttons, 1-5 link buttons on one row. For section, exactly one. Link buttons only: this server does not answer interactions, so a button that fires one would fail for whoever clicked it.",
+ "items": {
+ "properties": {
+ "disabled": {
+ "type": "boolean"
+ },
+ "label": {
+ "description": "Button text.",
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "url": {
+ "description": "Where the button leads.",
+ "format": "uri",
+ "maxLength": 512,
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "minItems": 1,
+ "type": "array"
+ },
+ "components": {
+ "description": "For container, the 1-10 blocks inside it.",
+ "items": {
+ "properties": {
+ "buttons": {
+ "items": {
+ "properties": {
+ "disabled": {
+ "type": "boolean"
+ },
+ "label": {
+ "description": "Button text.",
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "url": {
+ "description": "Where the button leads.",
+ "format": "uri",
+ "maxLength": 512,
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "minItems": 1,
+ "type": "array"
+ },
+ "divider": {
+ "type": "boolean"
+ },
+ "media": {
+ "items": {
+ "properties": {
+ "description": {
+ "description": "Alt text.",
+ "maxLength": 1024,
+ "type": "string"
+ },
+ "spoiler": {
+ "description": "Blur until clicked.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Public image URL.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ },
+ "spacing": {
+ "enum": [
+ "small",
+ "large"
+ ],
+ "type": "string"
+ },
+ "text": {
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "description": "Same block types as above, except container.",
+ "enum": [
+ "text",
+ "section",
+ "gallery",
+ "separator",
+ "buttons"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ },
+ "divider": {
+ "description": "For separator, draw a horizontal rule. Default true.",
+ "type": "boolean"
+ },
+ "media": {
+ "description": "For gallery, 1-10 images. For section, exactly one, shown as a thumbnail on the right.",
+ "items": {
+ "properties": {
+ "description": {
+ "description": "Alt text.",
+ "maxLength": 1024,
+ "type": "string"
+ },
+ "spoiler": {
+ "description": "Blur until clicked.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Public image URL.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ },
+ "spacing": {
+ "description": "For separator, how much padding. Default small.",
+ "enum": [
+ "small",
+ "large"
+ ],
+ "type": "string"
+ },
+ "spoiler": {
+ "description": "For container, blur the whole group until clicked.",
+ "type": "boolean"
+ },
+ "text": {
+ "description": "Markdown body. Required for text and section.",
+ "maxLength": 4000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "description": "text: a paragraph of markdown. section: text with a thumbnail or link button beside it. gallery: 1-10 images. separator: vertical space, optionally a rule. buttons: a row of link buttons. container: a bordered group with a colored edge.",
+ "enum": [
+ "text",
+ "section",
+ "gallery",
+ "separator",
+ "buttons",
+ "container"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "maxItems": 40,
+ "minItems": 1,
+ "type": "array"
+}