From cb8b9ba7bb4f0cbeec0ccf0699ce97a3df3bf4cc Mon Sep 17 00:00:00 2001 From: Revolt CI Date: Sun, 4 Jun 2023 18:38:27 +0000 Subject: [PATCH] chore: generate OpenAPI specification --- OpenAPI.json | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/OpenAPI.json b/OpenAPI.json index 70b328f..3551764 100644 --- a/OpenAPI.json +++ b/OpenAPI.json @@ -7375,6 +7375,26 @@ } } }, + { + "type": "object", + "required": [ + "max", + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "TooManyEmbeds" + ] + }, + "max": { + "type": "integer", + "format": "uint", + "minimum": 0.0 + } + } + }, { "type": "object", "required": [ @@ -10359,11 +10379,11 @@ }, "attachments": { "description": "Attachments to include in message", - "default": [], "type": "array", "items": { "type": "string" - } + }, + "nullable": true }, "replies": { "description": "Messages to reply to", @@ -10375,13 +10395,11 @@ }, "embeds": { "description": "Embeds to include in message\n\nText embed content contributes to the content length cap", - "default": [], "type": "array", "items": { "$ref": "#/components/schemas/SendableEmbed" }, - "maxItems": 10, - "minItems": 0 + "nullable": true }, "masquerade": { "description": "Masquerade to apply to this message",