From c19d074e30bd880f7467b1b35638ad3648aad1f8 Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Thu, 21 Nov 2024 19:02:10 +0000 Subject: [PATCH] Automated spec update (81876) --- 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 4b94a51..0c12d82 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": { @@ -16379,34 +16659,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": { @@ -20744,7 +20996,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20818,7 +21070,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20926,7 +21178,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20984,7 +21236,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21016,76 +21268,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, @@ -22798,7 +22980,7 @@ } } }, - "MentionableSelect": { + "MentionableSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -22869,6 +23051,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": {} @@ -23121,309 +23374,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": { @@ -23479,212 +23429,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": [ @@ -23731,70 +23475,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": { @@ -23841,7 +23521,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -23965,7 +23645,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -24603,28 +24283,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" } ] } @@ -25240,28 +24920,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" } ] } @@ -25314,32 +24994,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": { @@ -25356,7 +25010,7 @@ "format": "int32" }, "data": { - "$ref": "#/components/schemas/ModalInteractionCallbackData" + "$ref": "#/components/schemas/ModalInteractionCallbackRequestData" } }, "required": [ @@ -25364,6 +25018,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": { @@ -27475,7 +27155,7 @@ } } }, - "RoleSelect": { + "RoleSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -27539,6 +27219,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": { @@ -27732,85 +27476,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": { @@ -28666,7 +28331,7 @@ ], "format": "int32" }, - "StringSelect": { + "StringSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -28717,7 +28382,7 @@ "options": { "type": "array", "items": { - "$ref": "#/components/schemas/SelectOption" + "$ref": "#/components/schemas/StringSelectOptionForMessageRequest" }, "minItems": 1, "maxItems": 25 @@ -28729,6 +28394,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": { @@ -28796,7 +28602,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": [ { @@ -29963,7 +29910,7 @@ "flags" ] }, - "UserSelect": { + "UserSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -30027,6 +29974,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 eab2005..96dd1e0 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": { @@ -16430,34 +16710,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": { @@ -20840,7 +21092,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -20914,7 +21166,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21022,7 +21274,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21080,7 +21332,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -21112,76 +21364,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, @@ -22910,7 +23092,7 @@ } } }, - "MentionableSelect": { + "MentionableSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -22981,6 +23163,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": {} @@ -23233,309 +23486,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": { @@ -23591,212 +23541,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": [ @@ -23843,70 +23587,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": { @@ -23953,7 +23633,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -24077,7 +23757,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRow" + "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" }, "maxItems": 5 }, @@ -24715,28 +24395,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" } ] } @@ -25352,28 +25032,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" } ] } @@ -25426,32 +25106,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": { @@ -25468,7 +25122,7 @@ "format": "int32" }, "data": { - "$ref": "#/components/schemas/ModalInteractionCallbackData" + "$ref": "#/components/schemas/ModalInteractionCallbackRequestData" } }, "required": [ @@ -25476,6 +25130,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": { @@ -27880,7 +27560,7 @@ } } }, - "RoleSelect": { + "RoleSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -27944,6 +27624,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": { @@ -28161,85 +27905,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": { @@ -29125,7 +28790,7 @@ ], "format": "int32" }, - "StringSelect": { + "StringSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -29176,7 +28841,7 @@ "options": { "type": "array", "items": { - "$ref": "#/components/schemas/SelectOption" + "$ref": "#/components/schemas/StringSelectOptionForMessageRequest" }, "minItems": 1, "maxItems": 25 @@ -29188,6 +28853,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": { @@ -29255,7 +29061,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": [ { @@ -30423,7 +30370,7 @@ "flags" ] }, - "UserSelect": { + "UserSelectComponentForMessageRequest": { "type": "object", "properties": { "type": { @@ -30487,6 +30434,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": {