From d5701fafa5407a8d4a8c11aa6e0fbbfbc6d4ce79 Mon Sep 17 00:00:00 2001 From: Adversary Date: Fri, 6 Dec 2024 21:10:03 +0000 Subject: [PATCH] main - Automated spec update (84420) made at remote:2024-12-06T20:20:43 taken at now:2024-12-06T21:10:03 made by remote Nelly (automation bot) <> --- specs/openapi.json | 1683 ++++++++++++++++++------------------ specs/openapi_preview.json | 1683 ++++++++++++++++++------------------ 2 files changed, 1694 insertions(+), 1672 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index d0343f8..b2c776d 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -9484,7 +9484,7 @@ "id" ] }, - "ActionRow": { + "ActionRowComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -9504,25 +9504,22 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Button" + "$ref": "#/components/schemas/ButtonComponentForMessageRequest" }, { - "$ref": "#/components/schemas/ChannelSelect" + "$ref": "#/components/schemas/ChannelSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/InputText" + "$ref": "#/components/schemas/MentionableSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/MentionableSelect" + "$ref": "#/components/schemas/RoleSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/RoleSelect" + "$ref": "#/components/schemas/StringSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/StringSelect" - }, - { - "$ref": "#/components/schemas/UserSelect" + "$ref": "#/components/schemas/UserSelectComponentForMessageRequest" } ] }, @@ -9535,6 +9532,91 @@ "components" ] }, + "ActionRowComponentForModalRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 1 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TextInputComponentForModalRequest" + }, + "minItems": 1, + "maxItems": 5 + } + }, + "required": [ + "type", + "components" + ] + }, + "ActionRowComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 1 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "components": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ButtonComponentResponse" + }, + { + "$ref": "#/components/schemas/ChannelSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/MentionableSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/RoleSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/StringSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/TextInputComponentResponse" + }, + { + "$ref": "#/components/schemas/UserSelectComponentResponse" + } + ] + } + } + }, + "required": [ + "type", + "id" + ] + }, "ActivitiesAttachmentResponse": { "type": "object", "properties": { @@ -13726,7 +13808,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -13873,28 +13955,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/MessageComponentActionRowResponse" + "$ref": "#/components/schemas/ActionRowComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentButtonResponse" + "$ref": "#/components/schemas/ButtonComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + "$ref": "#/components/schemas/ChannelSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentInputTextResponse" + "$ref": "#/components/schemas/MentionableSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + "$ref": "#/components/schemas/RoleSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + "$ref": "#/components/schemas/StringSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + "$ref": "#/components/schemas/TextInputComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + "$ref": "#/components/schemas/UserSelectComponentResponse" } ] } @@ -14272,7 +14354,7 @@ "failed_users" ] }, - "Button": { + "ButtonComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -14310,16 +14392,6 @@ "null" ] }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/Emoji" - } - ] - }, "url": { "type": [ "string", @@ -14337,6 +14409,16 @@ "$ref": "#/components/schemas/SnowflakeType" } ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiForMessageRequest" + } + ] } }, "required": [ @@ -14344,6 +14426,81 @@ "style" ] }, + "ButtonComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 2 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": [ + "string", + "null" + ] + }, + "style": { + "$ref": "#/components/schemas/ButtonStyleTypes" + }, + "label": { + "type": [ + "string", + "null" + ] + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiResponse" + } + ] + }, + "url": { + "type": [ + "string", + "null" + ], + "maxLength": 2048, + "format": "uri" + }, + "sku_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + } + }, + "required": [ + "type", + "id", + "style" + ] + }, "ButtonStyleTypes": { "type": "integer", "oneOf": [ @@ -14553,7 +14710,7 @@ ], "format": "int32" }, - "ChannelSelect": { + "ChannelSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -14627,6 +14784,80 @@ "custom_id" ] }, + "ChannelSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 8 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "channel_types": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelTypes" + }, + "uniqueItems": true + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelSelectDefaultValueResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "ChannelSelectDefaultValue": { "type": "object", "properties": { @@ -14784,6 +15015,55 @@ "permissions" ] }, + "ComponentEmojiForMessageRequest": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": "string", + "maxLength": 32 + } + }, + "required": [ + "name" + ] + }, + "ComponentEmojiResponse": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": "string" + }, + "animated": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "name" + ] + }, "ConnectedAccountGuildResponse": { "type": "object", "properties": { @@ -16387,34 +16667,6 @@ "users" ] }, - "Emoji": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "name": { - "type": "string", - "maxLength": 32 - }, - "animated": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "name" - ] - }, "EmojiResponse": { "type": "object", "properties": { @@ -20752,7 +21004,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20826,7 +21078,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20934,7 +21186,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20992,7 +21244,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21024,76 +21276,6 @@ } } }, - "InputText": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 4 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "custom_id": { - "type": "string", - "maxLength": 100 - }, - "style": { - "$ref": "#/components/schemas/TextStyleTypes" - }, - "label": { - "type": "string", - "maxLength": 45 - }, - "value": { - "type": [ - "string", - "null" - ], - "maxLength": 4000 - }, - "placeholder": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "required": { - "type": [ - "boolean", - "null" - ] - }, - "min_length": { - "type": [ - "integer", - "null" - ], - "minimum": 0, - "maximum": 4000 - }, - "max_length": { - "type": [ - "integer", - "null" - ], - "minimum": 1, - "maximum": 4000 - } - }, - "required": [ - "type", - "custom_id", - "style", - "label" - ] - }, "Int53Type": { "type": "integer", "minimum": -9007199254740991, @@ -22806,7 +22988,7 @@ } } }, - "MentionableSelect": { + "MentionableSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -22877,6 +23059,77 @@ "custom_id" ] }, + "MentionableSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 7 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + }, + { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } + ] + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "MessageActivityResponse": { "type": "object", "properties": {} @@ -23129,309 +23382,6 @@ "participants" ] }, - "MessageComponentActionRowResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 1 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "components": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "$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" - } - ] - } - } - }, - "required": [ - "type", - "id" - ] - }, - "MessageComponentButtonResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 2 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": [ - "string", - "null" - ] - }, - "style": { - "$ref": "#/components/schemas/ButtonStyleTypes" - }, - "label": { - "type": [ - "string", - "null" - ] - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/MessageComponentEmojiResponse" - } - ] - }, - "url": { - "type": [ - "string", - "null" - ], - "maxLength": 2048, - "format": "uri" - }, - "sku_id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - } - }, - "required": [ - "type", - "id", - "style" - ] - }, - "MessageComponentChannelSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 8 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "channel_types": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ChannelTypes" - }, - "uniqueItems": true - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ChannelSelectDefaultValueResponse" - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, - "MessageComponentEmojiResponse": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "name": { - "type": "string" - }, - "animated": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "name" - ] - }, - "MessageComponentInputTextResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 4 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/components/schemas/TextStyleTypes" - }, - "label": { - "type": [ - "string", - "null" - ] - }, - "value": { - "type": [ - "string", - "null" - ] - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "required": { - "type": [ - "boolean", - "null" - ] - }, - "min_length": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_length": { - "type": [ - "integer", - "null" - ], - "format": "int32" - } - }, - "required": [ - "type", - "id", - "custom_id", - "style" - ] - }, "MessageComponentInteractionMetadataResponse": { "type": "object", "properties": { @@ -23487,212 +23437,6 @@ "interacted_message_id" ] }, - "MessageComponentMentionableSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 7 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" - }, - { - "$ref": "#/components/schemas/UserSelectDefaultValueResponse" - } - ] - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, - "MessageComponentRoleSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 6 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, - "MessageComponentStringSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 3 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "options": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SelectOptionResponse" - } - ] - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, "MessageComponentTypes": { "type": "integer", "oneOf": [ @@ -23739,70 +23483,6 @@ ], "format": "int32" }, - "MessageComponentUserSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 5 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/UserSelectDefaultValueResponse" - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, "MessageCreateRequest": { "type": "object", "properties": { @@ -23849,7 +23529,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -23973,7 +23653,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -24611,28 +24291,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/MessageComponentActionRowResponse" + "$ref": "#/components/schemas/ActionRowComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentButtonResponse" + "$ref": "#/components/schemas/ButtonComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + "$ref": "#/components/schemas/ChannelSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentInputTextResponse" + "$ref": "#/components/schemas/MentionableSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + "$ref": "#/components/schemas/RoleSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + "$ref": "#/components/schemas/StringSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + "$ref": "#/components/schemas/TextInputComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + "$ref": "#/components/schemas/UserSelectComponentResponse" } ] } @@ -25248,28 +24928,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/MessageComponentActionRowResponse" + "$ref": "#/components/schemas/ActionRowComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentButtonResponse" + "$ref": "#/components/schemas/ButtonComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + "$ref": "#/components/schemas/ChannelSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentInputTextResponse" + "$ref": "#/components/schemas/MentionableSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + "$ref": "#/components/schemas/RoleSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + "$ref": "#/components/schemas/StringSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + "$ref": "#/components/schemas/TextInputComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + "$ref": "#/components/schemas/UserSelectComponentResponse" } ] } @@ -25322,32 +25002,6 @@ "components" ] }, - "ModalInteractionCallbackData": { - "type": "object", - "properties": { - "custom_id": { - "type": "string", - "maxLength": 100 - }, - "title": { - "type": "string", - "maxLength": 45 - }, - "components": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ActionRow" - }, - "minItems": 1, - "maxItems": 5 - } - }, - "required": [ - "custom_id", - "title", - "components" - ] - }, "ModalInteractionCallbackRequest": { "type": "object", "properties": { @@ -25364,7 +25018,7 @@ "format": "int32" }, "data": { - "$ref": "#/components/schemas/ModalInteractionCallbackData" + "$ref": "#/components/schemas/ModalInteractionCallbackRequestData" } }, "required": [ @@ -25372,6 +25026,32 @@ "data" ] }, + "ModalInteractionCallbackRequestData": { + "type": "object", + "properties": { + "custom_id": { + "type": "string", + "maxLength": 100 + }, + "title": { + "type": "string", + "maxLength": 45 + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ActionRowComponentForModalRequest" + }, + "minItems": 1, + "maxItems": 5 + } + }, + "required": [ + "custom_id", + "title", + "components" + ] + }, "ModalSubmitInteractionMetadataResponse": { "type": "object", "properties": { @@ -27483,7 +27163,7 @@ } } }, - "RoleSelect": { + "RoleSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -27547,6 +27227,70 @@ "custom_id" ] }, + "RoleSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 6 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "RoleSelectDefaultValue": { "type": "object", "properties": { @@ -27740,85 +27484,6 @@ "user_id" ] }, - "SelectOption": { - "type": "object", - "properties": { - "label": { - "type": "string", - "minLength": 1, - "maxLength": 100 - }, - "value": { - "type": "string", - "minLength": 1, - "maxLength": 100 - }, - "description": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/Emoji" - } - ] - }, - "default": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "label", - "value" - ] - }, - "SelectOptionResponse": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/MessageComponentEmojiResponse" - } - ] - }, - "default": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "label", - "value" - ] - }, "SettingsEmojiResponse": { "type": "object", "properties": { @@ -28674,7 +28339,7 @@ ], "format": "int32" }, - "StringSelect": { + "StringSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -28725,7 +28390,7 @@ "options": { "type": "array", "items": { - "$ref": "#/components/schemas/SelectOption" + "$ref": "#/components/schemas/StringSelectOptionForMessageRequest" }, "minItems": 1, "maxItems": 25 @@ -28737,6 +28402,147 @@ "options" ] }, + "StringSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 3 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StringSelectOptionResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id", + "options" + ] + }, + "StringSelectOptionForMessageRequest": { + "type": "object", + "properties": { + "label": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "description": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "default": { + "type": [ + "boolean", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiForMessageRequest" + } + ] + } + }, + "required": [ + "label", + "value" + ] + }, + "StringSelectOptionResponse": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiResponse" + } + ] + }, + "default": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "label", + "value" + ] + }, "TeamMemberResponse": { "type": "object", "properties": { @@ -28804,7 +28610,148 @@ "members" ] }, - "TextStyleTypes": { + "TextInputComponentForModalRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 4 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "custom_id": { + "type": "string", + "maxLength": 100 + }, + "style": { + "$ref": "#/components/schemas/TextInputStyleTypes" + }, + "label": { + "type": "string", + "maxLength": 45 + }, + "value": { + "type": [ + "string", + "null" + ], + "maxLength": 4000 + }, + "placeholder": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "required": { + "type": [ + "boolean", + "null" + ] + }, + "min_length": { + "type": [ + "integer", + "null" + ], + "minimum": 0, + "maximum": 4000 + }, + "max_length": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "maximum": 4000 + } + }, + "required": [ + "type", + "custom_id", + "style", + "label" + ] + }, + "TextInputComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 4 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/components/schemas/TextInputStyleTypes" + }, + "label": { + "type": [ + "string", + "null" + ] + }, + "value": { + "type": [ + "string", + "null" + ] + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "required": { + "type": [ + "boolean", + "null" + ] + }, + "min_length": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_length": { + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "type", + "id", + "custom_id", + "style" + ] + }, + "TextInputStyleTypes": { "type": "integer", "oneOf": [ { @@ -29971,7 +29918,7 @@ "flags" ] }, - "UserSelect": { + "UserSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -30035,6 +29982,70 @@ "custom_id" ] }, + "UserSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 5 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "UserSelectDefaultValue": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 397e317..270c928 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -9484,7 +9484,7 @@ "id" ] }, - "ActionRow": { + "ActionRowComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -9504,25 +9504,22 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Button" + "$ref": "#/components/schemas/ButtonComponentForMessageRequest" }, { - "$ref": "#/components/schemas/ChannelSelect" + "$ref": "#/components/schemas/ChannelSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/InputText" + "$ref": "#/components/schemas/MentionableSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/MentionableSelect" + "$ref": "#/components/schemas/RoleSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/RoleSelect" + "$ref": "#/components/schemas/StringSelectComponentForMessageRequest" }, { - "$ref": "#/components/schemas/StringSelect" - }, - { - "$ref": "#/components/schemas/UserSelect" + "$ref": "#/components/schemas/UserSelectComponentForMessageRequest" } ] }, @@ -9535,6 +9532,91 @@ "components" ] }, + "ActionRowComponentForModalRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 1 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TextInputComponentForModalRequest" + }, + "minItems": 1, + "maxItems": 5 + } + }, + "required": [ + "type", + "components" + ] + }, + "ActionRowComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 1 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "components": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ButtonComponentResponse" + }, + { + "$ref": "#/components/schemas/ChannelSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/MentionableSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/RoleSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/StringSelectComponentResponse" + }, + { + "$ref": "#/components/schemas/TextInputComponentResponse" + }, + { + "$ref": "#/components/schemas/UserSelectComponentResponse" + } + ] + } + } + }, + "required": [ + "type", + "id" + ] + }, "ActivitiesAttachmentResponse": { "type": "object", "properties": { @@ -13737,7 +13819,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -13884,28 +13966,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/MessageComponentActionRowResponse" + "$ref": "#/components/schemas/ActionRowComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentButtonResponse" + "$ref": "#/components/schemas/ButtonComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + "$ref": "#/components/schemas/ChannelSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentInputTextResponse" + "$ref": "#/components/schemas/MentionableSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + "$ref": "#/components/schemas/RoleSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + "$ref": "#/components/schemas/StringSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + "$ref": "#/components/schemas/TextInputComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + "$ref": "#/components/schemas/UserSelectComponentResponse" } ] } @@ -14283,7 +14365,7 @@ "failed_users" ] }, - "Button": { + "ButtonComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -14321,16 +14403,6 @@ "null" ] }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/Emoji" - } - ] - }, "url": { "type": [ "string", @@ -14348,6 +14420,16 @@ "$ref": "#/components/schemas/SnowflakeType" } ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiForMessageRequest" + } + ] } }, "required": [ @@ -14355,6 +14437,81 @@ "style" ] }, + "ButtonComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 2 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": [ + "string", + "null" + ] + }, + "style": { + "$ref": "#/components/schemas/ButtonStyleTypes" + }, + "label": { + "type": [ + "string", + "null" + ] + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiResponse" + } + ] + }, + "url": { + "type": [ + "string", + "null" + ], + "maxLength": 2048, + "format": "uri" + }, + "sku_id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + } + }, + "required": [ + "type", + "id", + "style" + ] + }, "ButtonStyleTypes": { "type": "integer", "oneOf": [ @@ -14598,7 +14755,7 @@ ], "format": "int32" }, - "ChannelSelect": { + "ChannelSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -14672,6 +14829,80 @@ "custom_id" ] }, + "ChannelSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 8 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "channel_types": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelTypes" + }, + "uniqueItems": true + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelSelectDefaultValueResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "ChannelSelectDefaultValue": { "type": "object", "properties": { @@ -14834,6 +15065,55 @@ "permissions" ] }, + "ComponentEmojiForMessageRequest": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": "string", + "maxLength": 32 + } + }, + "required": [ + "name" + ] + }, + "ComponentEmojiResponse": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/SnowflakeType" + } + ] + }, + "name": { + "type": "string" + }, + "animated": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "name" + ] + }, "ConnectedAccountGuildResponse": { "type": "object", "properties": { @@ -16438,34 +16718,6 @@ "users" ] }, - "Emoji": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "name": { - "type": "string", - "maxLength": 32 - }, - "animated": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "name" - ] - }, "EmojiResponse": { "type": "object", "properties": { @@ -20848,7 +21100,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20922,7 +21174,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21030,7 +21282,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21088,7 +21340,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21120,76 +21372,6 @@ } } }, - "InputText": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 4 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "custom_id": { - "type": "string", - "maxLength": 100 - }, - "style": { - "$ref": "#/components/schemas/TextStyleTypes" - }, - "label": { - "type": "string", - "maxLength": 45 - }, - "value": { - "type": [ - "string", - "null" - ], - "maxLength": 4000 - }, - "placeholder": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "required": { - "type": [ - "boolean", - "null" - ] - }, - "min_length": { - "type": [ - "integer", - "null" - ], - "minimum": 0, - "maximum": 4000 - }, - "max_length": { - "type": [ - "integer", - "null" - ], - "minimum": 1, - "maximum": 4000 - } - }, - "required": [ - "type", - "custom_id", - "style", - "label" - ] - }, "Int53Type": { "type": "integer", "minimum": -9007199254740991, @@ -22918,7 +23100,7 @@ } } }, - "MentionableSelect": { + "MentionableSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -22989,6 +23171,77 @@ "custom_id" ] }, + "MentionableSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 7 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + }, + { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } + ] + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "MessageActivityResponse": { "type": "object", "properties": {} @@ -23241,309 +23494,6 @@ "participants" ] }, - "MessageComponentActionRowResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 1 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "components": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "$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" - } - ] - } - } - }, - "required": [ - "type", - "id" - ] - }, - "MessageComponentButtonResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 2 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": [ - "string", - "null" - ] - }, - "style": { - "$ref": "#/components/schemas/ButtonStyleTypes" - }, - "label": { - "type": [ - "string", - "null" - ] - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/MessageComponentEmojiResponse" - } - ] - }, - "url": { - "type": [ - "string", - "null" - ], - "maxLength": 2048, - "format": "uri" - }, - "sku_id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - } - }, - "required": [ - "type", - "id", - "style" - ] - }, - "MessageComponentChannelSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 8 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "channel_types": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ChannelTypes" - }, - "uniqueItems": true - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ChannelSelectDefaultValueResponse" - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, - "MessageComponentEmojiResponse": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "name": { - "type": "string" - }, - "animated": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "name" - ] - }, - "MessageComponentInputTextResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 4 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/components/schemas/TextStyleTypes" - }, - "label": { - "type": [ - "string", - "null" - ] - }, - "value": { - "type": [ - "string", - "null" - ] - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "required": { - "type": [ - "boolean", - "null" - ] - }, - "min_length": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_length": { - "type": [ - "integer", - "null" - ], - "format": "int32" - } - }, - "required": [ - "type", - "id", - "custom_id", - "style" - ] - }, "MessageComponentInteractionMetadataResponse": { "type": "object", "properties": { @@ -23599,212 +23549,6 @@ "interacted_message_id" ] }, - "MessageComponentMentionableSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 7 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" - }, - { - "$ref": "#/components/schemas/UserSelectDefaultValueResponse" - } - ] - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, - "MessageComponentRoleSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 6 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, - "MessageComponentStringSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 3 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "options": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SelectOptionResponse" - } - ] - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, "MessageComponentTypes": { "type": "integer", "oneOf": [ @@ -23851,70 +23595,6 @@ ], "format": "int32" }, - "MessageComponentUserSelectResponse": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "enum": [ - 5 - ], - "allOf": [ - { - "$ref": "#/components/schemas/MessageComponentTypes" - } - ], - "format": "int32" - }, - "id": { - "type": "integer", - "format": "int32" - }, - "custom_id": { - "type": "string" - }, - "placeholder": { - "type": [ - "string", - "null" - ] - }, - "min_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "max_values": { - "type": [ - "integer", - "null" - ], - "format": "int32" - }, - "disabled": { - "type": [ - "boolean", - "null" - ] - }, - "default_values": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/UserSelectDefaultValueResponse" - } - } - }, - "required": [ - "type", - "id", - "custom_id" - ] - }, "MessageCreateRequest": { "type": "object", "properties": { @@ -23961,7 +23641,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -24085,7 +23765,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -24723,28 +24403,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/MessageComponentActionRowResponse" + "$ref": "#/components/schemas/ActionRowComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentButtonResponse" + "$ref": "#/components/schemas/ButtonComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + "$ref": "#/components/schemas/ChannelSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentInputTextResponse" + "$ref": "#/components/schemas/MentionableSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + "$ref": "#/components/schemas/RoleSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + "$ref": "#/components/schemas/StringSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + "$ref": "#/components/schemas/TextInputComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + "$ref": "#/components/schemas/UserSelectComponentResponse" } ] } @@ -25360,28 +25040,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/MessageComponentActionRowResponse" + "$ref": "#/components/schemas/ActionRowComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentButtonResponse" + "$ref": "#/components/schemas/ButtonComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" + "$ref": "#/components/schemas/ChannelSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentInputTextResponse" + "$ref": "#/components/schemas/MentionableSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" + "$ref": "#/components/schemas/RoleSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" + "$ref": "#/components/schemas/StringSelectComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentStringSelectResponse" + "$ref": "#/components/schemas/TextInputComponentResponse" }, { - "$ref": "#/components/schemas/MessageComponentUserSelectResponse" + "$ref": "#/components/schemas/UserSelectComponentResponse" } ] } @@ -25434,32 +25114,6 @@ "components" ] }, - "ModalInteractionCallbackData": { - "type": "object", - "properties": { - "custom_id": { - "type": "string", - "maxLength": 100 - }, - "title": { - "type": "string", - "maxLength": 45 - }, - "components": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ActionRow" - }, - "minItems": 1, - "maxItems": 5 - } - }, - "required": [ - "custom_id", - "title", - "components" - ] - }, "ModalInteractionCallbackRequest": { "type": "object", "properties": { @@ -25476,7 +25130,7 @@ "format": "int32" }, "data": { - "$ref": "#/components/schemas/ModalInteractionCallbackData" + "$ref": "#/components/schemas/ModalInteractionCallbackRequestData" } }, "required": [ @@ -25484,6 +25138,32 @@ "data" ] }, + "ModalInteractionCallbackRequestData": { + "type": "object", + "properties": { + "custom_id": { + "type": "string", + "maxLength": 100 + }, + "title": { + "type": "string", + "maxLength": 45 + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ActionRowComponentForModalRequest" + }, + "minItems": 1, + "maxItems": 5 + } + }, + "required": [ + "custom_id", + "title", + "components" + ] + }, "ModalSubmitInteractionMetadataResponse": { "type": "object", "properties": { @@ -27888,7 +27568,7 @@ } } }, - "RoleSelect": { + "RoleSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -27952,6 +27632,70 @@ "custom_id" ] }, + "RoleSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 6 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/RoleSelectDefaultValueResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "RoleSelectDefaultValue": { "type": "object", "properties": { @@ -28169,85 +27913,6 @@ "response" ] }, - "SelectOption": { - "type": "object", - "properties": { - "label": { - "type": "string", - "minLength": 1, - "maxLength": 100 - }, - "value": { - "type": "string", - "minLength": 1, - "maxLength": 100 - }, - "description": { - "type": [ - "string", - "null" - ], - "maxLength": 100 - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/Emoji" - } - ] - }, - "default": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "label", - "value" - ] - }, - "SelectOptionResponse": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/MessageComponentEmojiResponse" - } - ] - }, - "default": { - "type": [ - "boolean", - "null" - ] - } - }, - "required": [ - "label", - "value" - ] - }, "SettingsEmojiResponse": { "type": "object", "properties": { @@ -29133,7 +28798,7 @@ ], "format": "int32" }, - "StringSelect": { + "StringSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -29184,7 +28849,7 @@ "options": { "type": "array", "items": { - "$ref": "#/components/schemas/SelectOption" + "$ref": "#/components/schemas/StringSelectOptionForMessageRequest" }, "minItems": 1, "maxItems": 25 @@ -29196,6 +28861,147 @@ "options" ] }, + "StringSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 3 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StringSelectOptionResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id", + "options" + ] + }, + "StringSelectOptionForMessageRequest": { + "type": "object", + "properties": { + "label": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "description": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "default": { + "type": [ + "boolean", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiForMessageRequest" + } + ] + } + }, + "required": [ + "label", + "value" + ] + }, + "StringSelectOptionResponse": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ComponentEmojiResponse" + } + ] + }, + "default": { + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "label", + "value" + ] + }, "TeamMemberResponse": { "type": "object", "properties": { @@ -29263,7 +29069,148 @@ "members" ] }, - "TextStyleTypes": { + "TextInputComponentForModalRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 4 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "custom_id": { + "type": "string", + "maxLength": 100 + }, + "style": { + "$ref": "#/components/schemas/TextInputStyleTypes" + }, + "label": { + "type": "string", + "maxLength": 45 + }, + "value": { + "type": [ + "string", + "null" + ], + "maxLength": 4000 + }, + "placeholder": { + "type": [ + "string", + "null" + ], + "maxLength": 100 + }, + "required": { + "type": [ + "boolean", + "null" + ] + }, + "min_length": { + "type": [ + "integer", + "null" + ], + "minimum": 0, + "maximum": 4000 + }, + "max_length": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "maximum": 4000 + } + }, + "required": [ + "type", + "custom_id", + "style", + "label" + ] + }, + "TextInputComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 4 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/components/schemas/TextInputStyleTypes" + }, + "label": { + "type": [ + "string", + "null" + ] + }, + "value": { + "type": [ + "string", + "null" + ] + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "required": { + "type": [ + "boolean", + "null" + ] + }, + "min_length": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_length": { + "type": [ + "integer", + "null" + ], + "format": "int32" + } + }, + "required": [ + "type", + "id", + "custom_id", + "style" + ] + }, + "TextInputStyleTypes": { "type": "integer", "oneOf": [ { @@ -30431,7 +30378,7 @@ "flags" ] }, - "UserSelect": { + "UserSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -30495,6 +30442,70 @@ "custom_id" ] }, + "UserSelectComponentResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 5 + ], + "allOf": [ + { + "$ref": "#/components/schemas/MessageComponentTypes" + } + ], + "format": "int32" + }, + "id": { + "type": "integer", + "format": "int32" + }, + "custom_id": { + "type": "string" + }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "min_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "max_values": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "disabled": { + "type": [ + "boolean", + "null" + ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserSelectDefaultValueResponse" + } + } + }, + "required": [ + "type", + "id", + "custom_id" + ] + }, "UserSelectDefaultValue": { "type": "object", "properties": {