From bed59ca64937538386561692dac649f935df937c Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Tue, 30 Apr 2024 22:44:08 +0000 Subject: [PATCH] Automated spec update (44798) --- specs/openapi.json | 289 ++++++++++++++++++++----------------- specs/openapi_preview.json | 289 ++++++++++++++++++++----------------- 2 files changed, 310 insertions(+), 268 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index 0661520..9688927 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -12318,21 +12318,12 @@ "BasicMessageResponse": { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/SnowflakeType" - }, "type": { "$ref": "#/components/schemas/MessageType" }, "content": { "type": "string" }, - "channel_id": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "author": { - "$ref": "#/components/schemas/UserResponse" - }, "attachments": { "type": "array", "items": { @@ -12345,28 +12336,6 @@ "$ref": "#/components/schemas/MessageEmbedResponse" } }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserResponse" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "uniqueItems": true - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, "timestamp": { "type": "string", "format": "date-time" @@ -12413,6 +12382,47 @@ ] } }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "author": { + "$ref": "#/components/schemas/UserResponse" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "uniqueItems": true + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, "activity": { "oneOf": [ { @@ -12568,34 +12578,24 @@ "null" ], "format": "int32" - }, - "resolved": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ResolvedObjectsResponse" - } - ] } }, "required": [ - "id", "type", "content", - "channel_id", - "author", "attachments", "embeds", + "timestamp", + "flags", + "components", + "id", + "channel_id", + "author", "mentions", "mention_roles", "pinned", "mention_everyone", - "tts", - "timestamp", - "flags", - "components" + "tts" ] }, "BlockMessageAction": { @@ -21710,7 +21710,7 @@ "type": "null" }, { - "$ref": "#/components/schemas/ReplyMessageReferenceRequest" + "$ref": "#/components/schemas/MessageReferenceRequest" } ] }, @@ -22279,6 +22279,53 @@ "me" ] }, + "MessageReferenceRequest": { + "type": "object", + "properties": { + "guild_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "channel_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "message_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "fail_if_not_exists": { + "type": [ + "boolean", + "null" + ] + }, + "type": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MessageReferenceType" + } + ] + } + }, + "required": [ + "message_id" + ] + }, "MessageReferenceResponse": { "type": "object", "properties": { @@ -22310,24 +22357,26 @@ "channel_id" ] }, + "MessageReferenceType": { + "type": "integer", + "oneOf": [ + { + "title": "DEFAULT", + "description": "Reference to a message", + "const": 0 + } + ], + "format": "int32" + }, "MessageResponse": { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/SnowflakeType" - }, "type": { "$ref": "#/components/schemas/MessageType" }, "content": { "type": "string" }, - "channel_id": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "author": { - "$ref": "#/components/schemas/UserResponse" - }, "attachments": { "type": "array", "items": { @@ -22340,28 +22389,6 @@ "$ref": "#/components/schemas/MessageEmbedResponse" } }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserResponse" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "uniqueItems": true - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, "timestamp": { "type": "string", "format": "date-time" @@ -22408,6 +22435,47 @@ ] } }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "author": { + "$ref": "#/components/schemas/UserResponse" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "uniqueItems": true + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, "activity": { "oneOf": [ { @@ -22564,16 +22632,6 @@ ], "format": "int32" }, - "resolved": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ResolvedObjectsResponse" - } - ] - }, "reactions": { "type": [ "array", @@ -22595,21 +22653,21 @@ } }, "required": [ - "id", "type", "content", - "channel_id", - "author", "attachments", "embeds", + "timestamp", + "flags", + "components", + "id", + "channel_id", + "author", "mentions", "mention_roles", "pinned", "mention_everyone", - "tts", - "timestamp", - "flags", - "components" + "tts" ] }, "MessageRoleSubscriptionDataResponse": { @@ -24178,43 +24236,6 @@ "metadata" ] }, - "ReplyMessageReferenceRequest": { - "type": "object", - "properties": { - "guild_id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "channel_id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "message_id": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "fail_if_not_exists": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "message_id" - ] - }, "ResolvedObjectsResponse": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 075776b..212dc45 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -12517,21 +12517,12 @@ "BasicMessageResponse": { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/SnowflakeType" - }, "type": { "$ref": "#/components/schemas/MessageType" }, "content": { "type": "string" }, - "channel_id": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "author": { - "$ref": "#/components/schemas/UserResponse" - }, "attachments": { "type": "array", "items": { @@ -12544,28 +12535,6 @@ "$ref": "#/components/schemas/MessageEmbedResponse" } }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserResponse" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "uniqueItems": true - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, "timestamp": { "type": "string", "format": "date-time" @@ -12612,6 +12581,47 @@ ] } }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "author": { + "$ref": "#/components/schemas/UserResponse" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "uniqueItems": true + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, "activity": { "oneOf": [ { @@ -12768,16 +12778,6 @@ ], "format": "int32" }, - "resolved": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ResolvedObjectsResponse" - } - ] - }, "interaction_metadata": { "oneOf": [ { @@ -12796,21 +12796,21 @@ } }, "required": [ - "id", "type", "content", - "channel_id", - "author", "attachments", "embeds", + "timestamp", + "flags", + "components", + "id", + "channel_id", + "author", "mentions", "mention_roles", "pinned", "mention_everyone", - "tts", - "timestamp", - "flags", - "components" + "tts" ] }, "BlockMessageAction": { @@ -22099,7 +22099,7 @@ "type": "null" }, { - "$ref": "#/components/schemas/ReplyMessageReferenceRequest" + "$ref": "#/components/schemas/MessageReferenceRequest" } ] }, @@ -22674,6 +22674,53 @@ "me" ] }, + "MessageReferenceRequest": { + "type": "object", + "properties": { + "guild_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "channel_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "message_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "fail_if_not_exists": { + "type": [ + "boolean", + "null" + ] + }, + "type": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MessageReferenceType" + } + ] + } + }, + "required": [ + "message_id" + ] + }, "MessageReferenceResponse": { "type": "object", "properties": { @@ -22705,24 +22752,26 @@ "channel_id" ] }, + "MessageReferenceType": { + "type": "integer", + "oneOf": [ + { + "title": "DEFAULT", + "description": "Reference to a message", + "const": 0 + } + ], + "format": "int32" + }, "MessageResponse": { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/SnowflakeType" - }, "type": { "$ref": "#/components/schemas/MessageType" }, "content": { "type": "string" }, - "channel_id": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "author": { - "$ref": "#/components/schemas/UserResponse" - }, "attachments": { "type": "array", "items": { @@ -22735,28 +22784,6 @@ "$ref": "#/components/schemas/MessageEmbedResponse" } }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserResponse" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "uniqueItems": true - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, "timestamp": { "type": "string", "format": "date-time" @@ -22803,6 +22830,47 @@ ] } }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "channel_id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "author": { + "$ref": "#/components/schemas/UserResponse" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "uniqueItems": true + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, "activity": { "oneOf": [ { @@ -22959,16 +23027,6 @@ ], "format": "int32" }, - "resolved": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ResolvedObjectsResponse" - } - ] - }, "interaction_metadata": { "oneOf": [ { @@ -23006,21 +23064,21 @@ } }, "required": [ - "id", "type", "content", - "channel_id", - "author", "attachments", "embeds", + "timestamp", + "flags", + "components", + "id", + "channel_id", + "author", "mentions", "mention_roles", "pinned", "mention_everyone", - "tts", - "timestamp", - "flags", - "components" + "tts" ] }, "MessageRoleSubscriptionDataResponse": { @@ -24953,43 +25011,6 @@ ], "format": "int32" }, - "ReplyMessageReferenceRequest": { - "type": "object", - "properties": { - "guild_id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "channel_id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "message_id": { - "$ref": "#/components/schemas/SnowflakeType" - }, - "fail_if_not_exists": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "message_id" - ] - }, "ResolvedObjectsResponse": { "type": "object", "properties": {