From 12fbb68718589a3e30c6d6269f91e5144fcdd299 Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Tue, 6 Aug 2024 02:59:58 +0000 Subject: [PATCH] Automated spec update (61564) --- specs/openapi.json | 1779 +++++++++++++++++++++++++++++++++++- specs/openapi_preview.json | 1415 +++++++++++++++++++++++++++- 2 files changed, 3189 insertions(+), 5 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index 5877345..bb7544f 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -1780,6 +1780,13 @@ "minimum": 1, "maximum": 100 } + }, + { + "name": "type", + "in": "query", + "schema": { + "$ref": "#/components/schemas/ReactionTypes" + } } ], "responses": { @@ -1955,6 +1962,121 @@ ] } }, + "/channels/{channel_id}/polls/{message_id}/answers/{answer_id}": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "message_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "answer_id", + "in": "path", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 10, + "format": "int32" + }, + "required": true + } + ], + "get": { + "operationId": "get_answer_voters", + "parameters": [ + { + "name": "after", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100 + } + } + ], + "responses": { + "200": { + "description": "200 response for get_answer_voters", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PollAnswerDetailsResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/channels/{channel_id}/polls/{message_id}/expire": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "message_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "post": { + "operationId": "poll_expire", + "responses": { + "200": { + "description": "200 response for poll_expire", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/webhooks/{webhook_id}/{webhook_token}/messages/@original": { "parameters": [ { @@ -2489,6 +2611,29 @@ "required": true } ], + "get": { + "operationId": "get_self_voice_state", + "responses": { + "200": { + "description": "200 response for get_self_voice_state", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoiceStateResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, "patch": { "operationId": "update_self_voice_state", "requestBody": { @@ -3010,6 +3155,97 @@ ] } }, + "/applications/{application_id}/attachment": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "post": { + "operationId": "upload_application_attachment", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentEncoding": "binary" + } + }, + "required": [ + "file" + ] + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "200 response for upload_application_attachment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActivitiesAttachmentResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + }, + { + "OAuth2": [ + "activities.read", + "activities.write", + "applications.builds.read", + "applications.builds.upload", + "applications.commands", + "applications.commands.permissions.update", + "applications.commands.update", + "applications.entitlements", + "applications.store.update", + "bot", + "connections", + "dm_channels.read", + "email", + "gdm.join", + "guilds", + "guilds.join", + "guilds.members.read", + "identify", + "messages.read", + "openid", + "relationships.read", + "role_connections.write", + "rpc", + "rpc.activities.write", + "rpc.notifications.read", + "rpc.screenshare.read", + "rpc.screenshare.write", + "rpc.video.read", + "rpc.video.write", + "rpc.voice.read", + "rpc.voice.write", + "voice", + "webhook.incoming" + ] + } + ] + } + }, "/applications/{application_id}/commands/{command_id}": { "parameters": [ { @@ -3271,6 +3507,188 @@ ] } }, + "/applications/{application_id}/emojis/{emoji_id}": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "emoji_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "get_application_emoji", + "responses": { + "200": { + "description": "200 response for get_application_emoji", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "delete": { + "operationId": "delete_application_emoji", + "responses": { + "204": { + "description": "204 response for delete_application_emoji" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "patch": { + "operationId": "update_application_emoji", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "200 response for update_application_emoji", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/applications/{application_id}/emojis": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "list_application_emojis", + "responses": { + "200": { + "description": "200 response for list_application_emojis", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListApplicationEmojisResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "post": { + "operationId": "create_application_emoji", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "image": { + "type": "string", + "contentEncoding": "base64" + } + }, + "required": [ + "name", + "image" + ] + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "201 response for create_application_emoji", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/interactions/{interaction_id}/{interaction_token}/callback": { "parameters": [ { @@ -5450,6 +5868,29 @@ "required": true } ], + "get": { + "operationId": "get_voice_state", + "responses": { + "200": { + "description": "200 response for get_voice_state", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoiceStateResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, "patch": { "operationId": "update_voice_state", "requestBody": { @@ -8916,6 +9357,17 @@ "components" ] }, + "ActivitiesAttachmentResponse": { + "type": "object", + "properties": { + "attachment": { + "$ref": "#/components/schemas/AttachmentResponse" + } + }, + "required": [ + "attachment" + ] + }, "AfkTimeouts": { "type": "integer", "oneOf": [ @@ -9492,6 +9944,28 @@ "null" ] }, + "contexts": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/InteractionContextType" + }, + "minItems": 1, + "uniqueItems": true + }, + "integration_types": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ApplicationIntegrationType" + }, + "minItems": 1, + "uniqueItems": true + }, "type": { "oneOf": [ { @@ -9704,6 +10178,57 @@ "description" ] }, + "ApplicationCommandInteractionMetadataResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "type": { + "type": "integer", + "enum": [ + 2 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionTypes" + } + ], + "format": "int32" + }, + "user": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserResponse" + } + ] + }, + "authorizing_integration_owners": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "original_response_message_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + } + }, + "required": [ + "id", + "type", + "authorizing_integration_owners" + ] + }, "ApplicationCommandMentionableOption": { "type": "object", "properties": { @@ -10352,6 +10877,28 @@ "boolean", "null" ] + }, + "contexts": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/InteractionContextType" + }, + "minItems": 1, + "uniqueItems": true + }, + "integration_types": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ApplicationIntegrationType" + }, + "minItems": 1, + "uniqueItems": true } } }, @@ -10468,6 +11015,26 @@ "null" ] }, + "contexts": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/InteractionContextType" + }, + "uniqueItems": true + }, + "integration_types": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ApplicationIntegrationType" + }, + "uniqueItems": true + }, "options": { "type": [ "array", @@ -11304,6 +11871,28 @@ "null" ] }, + "contexts": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/InteractionContextType" + }, + "minItems": 1, + "uniqueItems": true + }, + "integration_types": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ApplicationIntegrationType" + }, + "minItems": 1, + "uniqueItems": true + }, "type": { "oneOf": [ { @@ -11455,6 +12044,22 @@ "description" ] }, + "ApplicationExplicitContentFilterTypes": { + "type": "integer", + "oneOf": [ + { + "title": "INHERIT", + "description": "inherit guild content filter setting", + "const": 0 + }, + { + "title": "ALWAYS", + "description": "interactions will always be scanned", + "const": 1 + } + ], + "format": "int32" + }, "ApplicationFormPartial": { "type": "object", "properties": { @@ -11521,6 +12126,16 @@ "maxLength": 2048, "format": "uri" }, + "explicit_content_filter": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationExplicitContentFilterTypes" + } + ] + }, "max_participants": { "type": [ "integer", @@ -11576,6 +12191,24 @@ ], "maxLength": 2048, "format": "uri" + }, + "integration_types_config": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationIntegrationTypeConfiguration" + } + ] + }, + "minProperties": 1, + "maxProperties": 2 } } }, @@ -11653,6 +12286,41 @@ "type" ] }, + "ApplicationIntegrationType": { + "type": "integer", + "oneOf": [], + "format": "int32" + }, + "ApplicationIntegrationTypeConfiguration": { + "type": "object", + "properties": { + "oauth2_install_params": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationOAuth2InstallParams" + } + ] + } + } + }, + "ApplicationIntegrationTypeConfigurationResponse": { + "type": "object", + "properties": { + "oauth2_install_params": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationOAuth2InstallParamsResponse" + } + ] + } + } + }, "ApplicationOAuth2InstallParams": { "type": "object", "properties": { @@ -11839,6 +12507,15 @@ } ] }, + "integration_types_config": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "$ref": "#/components/schemas/ApplicationIntegrationTypeConfigurationResponse" + } + }, "verify_key": { "type": "string" }, @@ -12008,6 +12685,113 @@ } } }, + "AttachmentResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "filename": { + "type": "string" + }, + "size": { + "type": "integer", + "format": "int32" + }, + "url": { + "type": "string", + "format": "uri" + }, + "proxy_url": { + "type": "string", + "format": "uri" + }, + "width": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "height": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "duration_secs": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "waveform": { + "type": [ + "string", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "content_type": { + "type": [ + "string", + "null" + ] + }, + "ephemeral": { + "type": [ + "boolean", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "application": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationResponse" + } + ] + }, + "clip_created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "clip_participants": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserResponse" + } + } + }, + "required": [ + "id", + "filename", + "size", + "url", + "proxy_url" + ] + }, "AuditLogActionTypes": { "type": "integer", "oneOf": [ @@ -12708,6 +13492,16 @@ "$ref": "#/components/schemas/MessageAttachmentRequest" }, "maxItems": 10 + }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] } } }, @@ -13045,6 +13839,41 @@ "null" ], "format": "int32" + }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollResponse" + } + ] + }, + "interaction_metadata": { + "oneOf": [ + { + "$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse" + }, + { + "$ref": "#/components/schemas/ModalSubmitInteractionMetadataResponse" + }, + { + "type": "null" + } + ] + }, + "message_snapshots": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/MessageSnapshotResponse" + } } }, "required": [ @@ -13568,6 +14397,29 @@ "id" ] }, + "ChannelSelectDefaultValueResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "channel" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ChannelTypes": { "type": "integer", "oneOf": [ @@ -19542,6 +20394,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "tts": { "type": [ "boolean", @@ -19606,6 +20468,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "tts": { "type": [ "boolean", @@ -19762,6 +20634,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "flags": { "type": [ "integer", @@ -20075,6 +20957,11 @@ ], "format": "int32" }, + "InteractionContextType": { + "type": "integer", + "oneOf": [], + "format": "int32" + }, "InteractionTypes": { "type": "integer", "oneOf": [ @@ -20231,6 +21118,15 @@ } ] }, + "integration_types_config": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "$ref": "#/components/schemas/ApplicationIntegrationTypeConfigurationResponse" + } + }, "verify_key": { "type": "string" }, @@ -20803,6 +21699,20 @@ } } }, + "ListApplicationEmojisResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + }, + "required": [ + "items" + ] + }, "ListGuildSoundboardSoundsResponse": { "type": "object", "properties": { @@ -21207,6 +22117,12 @@ "mention_total_limit": { "type": "integer", "format": "int32" + }, + "mention_raid_protection_enabled": { + "type": [ + "boolean", + "null" + ] } }, "required": [ @@ -21550,6 +22466,29 @@ ], "maxLength": 1024 }, + "duration_secs": { + "type": [ + "number", + "null" + ], + "minimum": 0, + "maximum": 2147483647, + "format": "double" + }, + "waveform": { + "type": [ + "string", + "null" + ], + "maxLength": 400 + }, + "title": { + "type": [ + "string", + "null" + ], + "maxLength": 1024 + }, "is_remix": { "type": [ "boolean", @@ -21878,6 +22817,15 @@ "$ref": "#/components/schemas/ChannelTypes" }, "uniqueItems": true + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelSelectDefaultValueResponse" + } } }, "required": [ @@ -21984,6 +22932,61 @@ "style" ] }, + "MessageComponentInteractionMetadataResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "type": { + "type": "integer", + "enum": [ + 3 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionTypes" + } + ], + "format": "int32" + }, + "user": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserResponse" + } + ] + }, + "authorizing_integration_owners": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "original_response_message_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "interacted_message_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "id", + "type", + "authorizing_integration_owners", + "interacted_message_id" + ] + }, "MessageComponentMentionableSelectResponse": { "type": "object", "properties": { @@ -22031,6 +23034,22 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + }, + { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } + ] + } } }, "required": [ @@ -22086,6 +23105,15 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + } } }, "required": [ @@ -22258,6 +23286,15 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } } }, "required": [ @@ -22332,6 +23369,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "message_reference": { "oneOf": [ { @@ -22360,6 +23407,12 @@ } ] }, + "enforce_nonce": { + "type": [ + "boolean", + "null" + ] + }, "tts": { "type": [ "boolean", @@ -23258,6 +24311,41 @@ ], "format": "int32" }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollResponse" + } + ] + }, + "interaction_metadata": { + "oneOf": [ + { + "$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse" + }, + { + "$ref": "#/components/schemas/ModalSubmitInteractionMetadataResponse" + }, + { + "type": "null" + } + ] + }, + "message_snapshots": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/MessageSnapshotResponse" + } + }, "reactions": { "type": [ "array", @@ -23320,6 +24408,21 @@ "is_renewal" ] }, + "MessageSnapshotResponse": { + "type": "object", + "properties": { + "message": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MinimalContentMessageResponse" + } + ] + } + } + }, "MessageStickerItemResponse": { "type": "object", "properties": { @@ -23566,6 +24669,134 @@ ], "format": "int32" }, + "MinimalContentMessageResponse": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageType" + }, + "content": { + "type": "string" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "uniqueItems": true + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageAttachmentResponse" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEmbedResponse" + } + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "flags": { + "type": "integer", + "format": "int32" + }, + "components": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessageComponentActionRowResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentButtonResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentInputTextResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + } + ] + } + }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, + "stickers": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GuildStickerResponse" + }, + { + "$ref": "#/components/schemas/StandardStickerResponse" + } + ] + } + }, + "sticker_items": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/MessageStickerItemResponse" + } + } + }, + "required": [ + "type", + "content", + "mentions", + "mention_roles", + "attachments", + "embeds", + "timestamp", + "flags", + "components" + ] + }, "ModalInteractionCallbackData": { "type": "object", "properties": { @@ -23616,6 +24847,68 @@ "data" ] }, + "ModalSubmitInteractionMetadataResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "type": { + "type": "integer", + "enum": [ + 5 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionTypes" + } + ], + "format": "int32" + }, + "user": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserResponse" + } + ] + }, + "authorizing_integration_owners": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "original_response_message_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "triggering_interaction_metadata": { + "oneOf": [ + { + "$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse" + } + ] + } + }, + "required": [ + "id", + "type", + "authorizing_integration_owners", + "triggering_interaction_metadata" + ] + }, "MyGuildResponse": { "type": "object", "properties": { @@ -24265,6 +25558,298 @@ "type" ] }, + "PollAnswerCreateRequest": { + "type": "object", + "properties": { + "poll_media": { + "$ref": "#/components/schemas/PollMediaCreateRequest" + } + }, + "required": [ + "poll_media" + ] + }, + "PollAnswerDetailsResponse": { + "type": "object", + "properties": { + "users": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserResponse" + } + } + } + }, + "PollAnswerResponse": { + "type": "object", + "properties": { + "answer_id": { + "type": "integer", + "format": "int32" + }, + "poll_media": { + "$ref": "#/components/schemas/PollMediaResponse" + } + }, + "required": [ + "answer_id", + "poll_media" + ] + }, + "PollCreateRequest": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswerCreateRequest" + }, + "minItems": 1, + "maxItems": 10 + }, + "allow_multiselect": { + "type": [ + "boolean", + "null" + ] + }, + "layout_type": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollLayoutTypes" + } + ] + }, + "duration": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "maximum": 768, + "format": "int32" + } + }, + "required": [ + "question", + "answers" + ] + }, + "PollEmoji": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 32 + }, + "animated": { + "type": [ + "boolean", + "null" + ] + } + } + }, + "PollEmojiCreateRequest": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 32 + }, + "animated": { + "type": [ + "boolean", + "null" + ] + } + } + }, + "PollLayoutTypes": { + "type": "integer", + "oneOf": [], + "format": "int32" + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 300 + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollEmoji" + } + ] + } + } + }, + "PollMediaCreateRequest": { + "type": "object", + "properties": { + "text": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 300 + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollEmojiCreateRequest" + } + ] + } + } + }, + "PollMediaResponse": { + "type": "object", + "properties": { + "text": { + "type": [ + "string", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MessageReactionEmojiResponse" + } + ] + } + } + }, + "PollResponse": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMediaResponse" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswerResponse" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "$ref": "#/components/schemas/PollLayoutTypes" + }, + "results": { + "$ref": "#/components/schemas/PollResultsResponse" + } + }, + "required": [ + "question", + "answers", + "expiry", + "allow_multiselect", + "layout_type", + "results" + ] + }, + "PollResultsEntryResponse": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "count": { + "type": "integer", + "format": "int32" + }, + "me_voted": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "id", + "count" + ] + }, + "PollResultsResponse": { + "type": "object", + "properties": { + "answer_counts": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/PollResultsEntryResponse" + } + }, + "is_finalized": { + "type": "boolean" + } + }, + "required": [ + "is_finalized" + ] + }, "PongInteractionCallbackRequest": { "type": "object", "properties": { @@ -24462,6 +26047,15 @@ } ] }, + "integration_types_config": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "$ref": "#/components/schemas/ApplicationIntegrationTypeConfigurationResponse" + } + }, "verify_key": { "type": "string" }, @@ -24520,6 +26114,9 @@ ], "format": "int32" }, + "explicit_content_filter": { + "$ref": "#/components/schemas/ApplicationExplicitContentFilterTypes" + }, "team": { "oneOf": [ { @@ -24538,7 +26135,8 @@ "verify_key", "flags", "redirect_uris", - "owner" + "owner", + "explicit_content_filter" ] }, "PrivateChannelRequestPartial": { @@ -24881,6 +26479,22 @@ "metadata" ] }, + "ReactionTypes": { + "type": "integer", + "oneOf": [ + { + "title": "NORMAL", + "description": "Normal reaction type", + "const": 0 + }, + { + "title": "BURST", + "description": "Burst reaction type", + "const": 1 + } + ], + "format": "int32" + }, "ResolvedObjectsResponse": { "type": "object", "properties": { @@ -25381,6 +26995,29 @@ "id" ] }, + "RoleSelectDefaultValueResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "role" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ScheduledEventResponse": { "type": "object", "properties": { @@ -27372,7 +29009,24 @@ }, "UserAvatarDecorationResponse": { "type": "object", - "properties": {} + "properties": { + "asset": { + "type": "string" + }, + "sku_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + } + }, + "required": [ + "asset" + ] }, "UserCommunicationDisabledAction": { "type": "object", @@ -27549,6 +29203,16 @@ "null" ] }, + "avatar_decoration_data": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserAvatarDecorationResponse" + } + ] + }, "mfa_enabled": { "type": "boolean" }, @@ -27643,6 +29307,16 @@ "string", "null" ] + }, + "avatar_decoration_data": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserAvatarDecorationResponse" + } + ] } }, "required": [ @@ -27740,6 +29414,29 @@ "id" ] }, + "UserSelectDefaultValueResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "user" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "VanityURLErrorResponse": { "type": "object", "properties": { @@ -28150,6 +29847,84 @@ "privacy_level" ] }, + "VoiceStateResponse": { + "type": "object", + "properties": { + "channel_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "deaf": { + "type": "boolean" + }, + "guild_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "member": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/GuildMemberResponse" + } + ] + }, + "mute": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "suppress": { + "type": "boolean" + }, + "self_stream": { + "type": [ + "boolean", + "null" + ] + }, + "self_deaf": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "session_id": { + "type": "string" + }, + "user_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "deaf", + "mute", + "suppress", + "self_deaf", + "self_video", + "session_id", + "user_id" + ] + }, "WebhookSlackEmbed": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 9c0c367..4b8014f 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -1780,6 +1780,13 @@ "minimum": 1, "maximum": 100 } + }, + { + "name": "type", + "in": "query", + "schema": { + "$ref": "#/components/schemas/ReactionTypes" + } } ], "responses": { @@ -1955,6 +1962,121 @@ ] } }, + "/channels/{channel_id}/polls/{message_id}/answers/{answer_id}": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "message_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "answer_id", + "in": "path", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 10, + "format": "int32" + }, + "required": true + } + ], + "get": { + "operationId": "get_answer_voters", + "parameters": [ + { + "name": "after", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100 + } + } + ], + "responses": { + "200": { + "description": "200 response for get_answer_voters", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PollAnswerDetailsResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/channels/{channel_id}/polls/{message_id}/expire": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "message_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "post": { + "operationId": "poll_expire", + "responses": { + "200": { + "description": "200 response for poll_expire", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/webhooks/{webhook_id}/{webhook_token}/messages/@original": { "parameters": [ { @@ -2489,6 +2611,29 @@ "required": true } ], + "get": { + "operationId": "get_self_voice_state", + "responses": { + "200": { + "description": "200 response for get_self_voice_state", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoiceStateResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, "patch": { "operationId": "update_self_voice_state", "requestBody": { @@ -3010,6 +3155,97 @@ ] } }, + "/applications/{application_id}/attachment": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "post": { + "operationId": "upload_application_attachment", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentEncoding": "binary" + } + }, + "required": [ + "file" + ] + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "200 response for upload_application_attachment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActivitiesAttachmentResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + }, + { + "OAuth2": [ + "activities.read", + "activities.write", + "applications.builds.read", + "applications.builds.upload", + "applications.commands", + "applications.commands.permissions.update", + "applications.commands.update", + "applications.entitlements", + "applications.store.update", + "bot", + "connections", + "dm_channels.read", + "email", + "gdm.join", + "guilds", + "guilds.join", + "guilds.members.read", + "identify", + "messages.read", + "openid", + "relationships.read", + "role_connections.write", + "rpc", + "rpc.activities.write", + "rpc.notifications.read", + "rpc.screenshare.read", + "rpc.screenshare.write", + "rpc.video.read", + "rpc.video.write", + "rpc.voice.read", + "rpc.voice.write", + "voice", + "webhook.incoming" + ] + } + ] + } + }, "/applications/{application_id}/commands/{command_id}": { "parameters": [ { @@ -3271,6 +3507,188 @@ ] } }, + "/applications/{application_id}/emojis/{emoji_id}": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "emoji_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "get_application_emoji", + "responses": { + "200": { + "description": "200 response for get_application_emoji", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "delete": { + "operationId": "delete_application_emoji", + "responses": { + "204": { + "description": "204 response for delete_application_emoji" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "patch": { + "operationId": "update_application_emoji", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "200 response for update_application_emoji", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/applications/{application_id}/emojis": { + "parameters": [ + { + "name": "application_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "operationId": "list_application_emojis", + "responses": { + "200": { + "description": "200 response for list_application_emojis", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListApplicationEmojisResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, + "post": { + "operationId": "create_application_emoji", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 2, + "maxLength": 32 + }, + "image": { + "type": "string", + "contentEncoding": "base64" + } + }, + "required": [ + "name", + "image" + ] + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "201 response for create_application_emoji", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/interactions/{interaction_id}/{interaction_token}/callback": { "parameters": [ { @@ -5450,6 +5868,29 @@ "required": true } ], + "get": { + "operationId": "get_voice_state", + "responses": { + "200": { + "description": "200 response for get_voice_state", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoiceStateResponse" + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + }, "patch": { "operationId": "update_voice_state", "requestBody": { @@ -8916,6 +9357,17 @@ "components" ] }, + "ActivitiesAttachmentResponse": { + "type": "object", + "properties": { + "attachment": { + "$ref": "#/components/schemas/AttachmentResponse" + } + }, + "required": [ + "attachment" + ] + }, "AfkTimeouts": { "type": "integer", "oneOf": [ @@ -11592,6 +12044,22 @@ "description" ] }, + "ApplicationExplicitContentFilterTypes": { + "type": "integer", + "oneOf": [ + { + "title": "INHERIT", + "description": "inherit guild content filter setting", + "const": 0 + }, + { + "title": "ALWAYS", + "description": "interactions will always be scanned", + "const": 1 + } + ], + "format": "int32" + }, "ApplicationFormPartial": { "type": "object", "properties": { @@ -11658,6 +12126,16 @@ "maxLength": 2048, "format": "uri" }, + "explicit_content_filter": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationExplicitContentFilterTypes" + } + ] + }, "max_participants": { "type": [ "integer", @@ -11841,7 +12319,18 @@ }, "ApplicationIntegrationTypeConfigurationResponse": { "type": "object", - "properties": {} + "properties": { + "oauth2_install_params": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationOAuth2InstallParamsResponse" + } + ] + } + } }, "ApplicationOAuth2InstallParams": { "type": "object", @@ -12207,6 +12696,113 @@ } } }, + "AttachmentResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "filename": { + "type": "string" + }, + "size": { + "type": "integer", + "format": "int32" + }, + "url": { + "type": "string", + "format": "uri" + }, + "proxy_url": { + "type": "string", + "format": "uri" + }, + "width": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "height": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "duration_secs": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "waveform": { + "type": [ + "string", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "content_type": { + "type": [ + "string", + "null" + ] + }, + "ephemeral": { + "type": [ + "boolean", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "application": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationResponse" + } + ] + }, + "clip_created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "clip_participants": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserResponse" + } + } + }, + "required": [ + "id", + "filename", + "size", + "url", + "proxy_url" + ] + }, "AuditLogActionTypes": { "type": "integer", "oneOf": [ @@ -12907,6 +13503,16 @@ "$ref": "#/components/schemas/MessageAttachmentRequest" }, "maxItems": 10 + }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] } } }, @@ -13245,6 +13851,16 @@ ], "format": "int32" }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollResponse" + } + ] + }, "interaction_metadata": { "oneOf": [ { @@ -13260,6 +13876,15 @@ "type": "null" } ] + }, + "message_snapshots": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/MessageSnapshotResponse" + } } }, "required": [ @@ -13817,6 +14442,29 @@ "id" ] }, + "ChannelSelectDefaultValueResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "channel" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ChannelTypes": { "type": "integer", "oneOf": [ @@ -19842,6 +20490,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "tts": { "type": [ "boolean", @@ -19906,6 +20564,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "tts": { "type": [ "boolean", @@ -20062,6 +20730,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "flags": { "type": [ "integer", @@ -21133,6 +21811,20 @@ } } }, + "ListApplicationEmojisResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EmojiResponse" + } + } + }, + "required": [ + "items" + ] + }, "ListGuildSoundboardSoundsResponse": { "type": "object", "properties": { @@ -21537,6 +22229,12 @@ "mention_total_limit": { "type": "integer", "format": "int32" + }, + "mention_raid_protection_enabled": { + "type": [ + "boolean", + "null" + ] } }, "required": [ @@ -21880,6 +22578,29 @@ ], "maxLength": 1024 }, + "duration_secs": { + "type": [ + "number", + "null" + ], + "minimum": 0, + "maximum": 2147483647, + "format": "double" + }, + "waveform": { + "type": [ + "string", + "null" + ], + "maxLength": 400 + }, + "title": { + "type": [ + "string", + "null" + ], + "maxLength": 1024 + }, "is_remix": { "type": [ "boolean", @@ -22208,6 +22929,15 @@ "$ref": "#/components/schemas/ChannelTypes" }, "uniqueItems": true + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelSelectDefaultValueResponse" + } } }, "required": [ @@ -22416,6 +23146,22 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + }, + { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } + ] + } } }, "required": [ @@ -22471,6 +23217,15 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + } } }, "required": [ @@ -22643,6 +23398,15 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } } }, "required": [ @@ -22717,6 +23481,16 @@ }, "maxItems": 10 }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollCreateRequest" + } + ] + }, "message_reference": { "oneOf": [ { @@ -23649,6 +24423,16 @@ ], "format": "int32" }, + "poll": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollResponse" + } + ] + }, "interaction_metadata": { "oneOf": [ { @@ -23665,6 +24449,15 @@ } ] }, + "message_snapshots": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/MessageSnapshotResponse" + } + }, "reactions": { "type": [ "array", @@ -23727,6 +24520,21 @@ "is_renewal" ] }, + "MessageSnapshotResponse": { + "type": "object", + "properties": { + "message": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MinimalContentMessageResponse" + } + ] + } + } + }, "MessageStickerItemResponse": { "type": "object", "properties": { @@ -23973,6 +24781,134 @@ ], "format": "int32" }, + "MinimalContentMessageResponse": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageType" + }, + "content": { + "type": "string" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "uniqueItems": true + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageAttachmentResponse" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEmbedResponse" + } + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "flags": { + "type": "integer", + "format": "int32" + }, + "components": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessageComponentActionRowResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentButtonResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentInputTextResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + }, + { + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + } + ] + } + }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, + "stickers": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GuildStickerResponse" + }, + { + "$ref": "#/components/schemas/StandardStickerResponse" + } + ] + } + }, + "sticker_items": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/MessageStickerItemResponse" + } + } + }, + "required": [ + "type", + "content", + "mentions", + "mention_roles", + "attachments", + "embeds", + "timestamp", + "flags", + "components" + ] + }, "ModalInteractionCallbackData": { "type": "object", "properties": { @@ -24734,6 +25670,298 @@ "type" ] }, + "PollAnswerCreateRequest": { + "type": "object", + "properties": { + "poll_media": { + "$ref": "#/components/schemas/PollMediaCreateRequest" + } + }, + "required": [ + "poll_media" + ] + }, + "PollAnswerDetailsResponse": { + "type": "object", + "properties": { + "users": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserResponse" + } + } + } + }, + "PollAnswerResponse": { + "type": "object", + "properties": { + "answer_id": { + "type": "integer", + "format": "int32" + }, + "poll_media": { + "$ref": "#/components/schemas/PollMediaResponse" + } + }, + "required": [ + "answer_id", + "poll_media" + ] + }, + "PollCreateRequest": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswerCreateRequest" + }, + "minItems": 1, + "maxItems": 10 + }, + "allow_multiselect": { + "type": [ + "boolean", + "null" + ] + }, + "layout_type": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollLayoutTypes" + } + ] + }, + "duration": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "maximum": 768, + "format": "int32" + } + }, + "required": [ + "question", + "answers" + ] + }, + "PollEmoji": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 32 + }, + "animated": { + "type": [ + "boolean", + "null" + ] + } + } + }, + "PollEmojiCreateRequest": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": [ + "string", + "null" + ], + "maxLength": 32 + }, + "animated": { + "type": [ + "boolean", + "null" + ] + } + } + }, + "PollLayoutTypes": { + "type": "integer", + "oneOf": [], + "format": "int32" + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 300 + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollEmoji" + } + ] + } + } + }, + "PollMediaCreateRequest": { + "type": "object", + "properties": { + "text": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 300 + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/PollEmojiCreateRequest" + } + ] + } + } + }, + "PollMediaResponse": { + "type": "object", + "properties": { + "text": { + "type": [ + "string", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/MessageReactionEmojiResponse" + } + ] + } + } + }, + "PollResponse": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMediaResponse" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswerResponse" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "$ref": "#/components/schemas/PollLayoutTypes" + }, + "results": { + "$ref": "#/components/schemas/PollResultsResponse" + } + }, + "required": [ + "question", + "answers", + "expiry", + "allow_multiselect", + "layout_type", + "results" + ] + }, + "PollResultsEntryResponse": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "count": { + "type": "integer", + "format": "int32" + }, + "me_voted": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "id", + "count" + ] + }, + "PollResultsResponse": { + "type": "object", + "properties": { + "answer_counts": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/PollResultsEntryResponse" + } + }, + "is_finalized": { + "type": "boolean" + } + }, + "required": [ + "is_finalized" + ] + }, "PongInteractionCallbackRequest": { "type": "object", "properties": { @@ -24998,6 +26226,9 @@ ], "format": "int32" }, + "explicit_content_filter": { + "$ref": "#/components/schemas/ApplicationExplicitContentFilterTypes" + }, "team": { "oneOf": [ { @@ -25016,7 +26247,8 @@ "verify_key", "flags", "redirect_uris", - "owner" + "owner", + "explicit_content_filter" ] }, "PrivateChannelRequestPartial": { @@ -25359,6 +26591,22 @@ "metadata" ] }, + "ReactionTypes": { + "type": "integer", + "oneOf": [ + { + "title": "NORMAL", + "description": "Normal reaction type", + "const": 0 + }, + { + "title": "BURST", + "description": "Burst reaction type", + "const": 1 + } + ], + "format": "int32" + }, "RecurrenceRule": { "type": "object", "properties": { @@ -26152,6 +27400,29 @@ "id" ] }, + "RoleSelectDefaultValueResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "role" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ScheduledEventResponse": { "type": "object", "properties": { @@ -28198,7 +29469,24 @@ }, "UserAvatarDecorationResponse": { "type": "object", - "properties": {} + "properties": { + "asset": { + "type": "string" + }, + "sku_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + } + }, + "required": [ + "asset" + ] }, "UserCommunicationDisabledAction": { "type": "object", @@ -28375,6 +29663,16 @@ "null" ] }, + "avatar_decoration_data": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserAvatarDecorationResponse" + } + ] + }, "mfa_enabled": { "type": "boolean" }, @@ -28469,6 +29767,16 @@ "string", "null" ] + }, + "avatar_decoration_data": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/UserAvatarDecorationResponse" + } + ] } }, "required": [ @@ -28566,6 +29874,29 @@ "id" ] }, + "UserSelectDefaultValueResponse": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "user" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "VanityURLErrorResponse": { "type": "object", "properties": { @@ -29006,6 +30337,84 @@ "privacy_level" ] }, + "VoiceStateResponse": { + "type": "object", + "properties": { + "channel_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "deaf": { + "type": "boolean" + }, + "guild_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "member": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/GuildMemberResponse" + } + ] + }, + "mute": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "suppress": { + "type": "boolean" + }, + "self_stream": { + "type": [ + "boolean", + "null" + ] + }, + "self_deaf": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "session_id": { + "type": "string" + }, + "user_id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "deaf", + "mute", + "suppress", + "self_deaf", + "self_video", + "session_id", + "user_id" + ] + }, "WebhookSlackEmbed": { "type": "object", "properties": {