From 6944546186d1744d383441c54711020f61874d83 Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Thu, 21 Nov 2024 21:07:14 +0000 Subject: [PATCH] Automated spec update (81966) --- specs/openapi.json | 1683 ++++++++++++++++++------------------ specs/openapi_preview.json | 1683 ++++++++++++++++++------------------ 2 files changed, 1672 insertions(+), 1694 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index 0c12d82..4b94a51 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -9484,7 +9484,7 @@ "id" ] }, - "ActionRowComponentForMessageRequest": { + "ActionRow": { "type": "object", "properties": { "type": { @@ -9504,22 +9504,25 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ButtonComponentForMessageRequest" + "$ref": "#/components/schemas/Button" }, { - "$ref": "#/components/schemas/ChannelSelectComponentForMessageRequest" + "$ref": "#/components/schemas/ChannelSelect" }, { - "$ref": "#/components/schemas/MentionableSelectComponentForMessageRequest" + "$ref": "#/components/schemas/InputText" }, { - "$ref": "#/components/schemas/RoleSelectComponentForMessageRequest" + "$ref": "#/components/schemas/MentionableSelect" }, { - "$ref": "#/components/schemas/StringSelectComponentForMessageRequest" + "$ref": "#/components/schemas/RoleSelect" }, { - "$ref": "#/components/schemas/UserSelectComponentForMessageRequest" + "$ref": "#/components/schemas/StringSelect" + }, + { + "$ref": "#/components/schemas/UserSelect" } ] }, @@ -9532,91 +9535,6 @@ "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": { @@ -13808,7 +13726,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -13955,28 +13873,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ActionRowComponentResponse" + "$ref": "#/components/schemas/MessageComponentActionRowResponse" }, { - "$ref": "#/components/schemas/ButtonComponentResponse" + "$ref": "#/components/schemas/MessageComponentButtonResponse" }, { - "$ref": "#/components/schemas/ChannelSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" }, { - "$ref": "#/components/schemas/MentionableSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentInputTextResponse" }, { - "$ref": "#/components/schemas/RoleSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" }, { - "$ref": "#/components/schemas/StringSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" }, { - "$ref": "#/components/schemas/TextInputComponentResponse" + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" }, { - "$ref": "#/components/schemas/UserSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" } ] } @@ -14354,7 +14272,7 @@ "failed_users" ] }, - "ButtonComponentForMessageRequest": { + "Button": { "type": "object", "properties": { "type": { @@ -14392,6 +14310,16 @@ "null" ] }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/Emoji" + } + ] + }, "url": { "type": [ "string", @@ -14409,16 +14337,6 @@ "$ref": "#/components/schemas/SnowflakeType" } ] - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ComponentEmojiForMessageRequest" - } - ] } }, "required": [ @@ -14426,81 +14344,6 @@ "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": [ @@ -14710,7 +14553,7 @@ ], "format": "int32" }, - "ChannelSelectComponentForMessageRequest": { + "ChannelSelect": { "type": "object", "properties": { "type": { @@ -14784,80 +14627,6 @@ "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": { @@ -15015,55 +14784,6 @@ "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": { @@ -16659,6 +16379,34 @@ "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": { @@ -20996,7 +20744,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21070,7 +20818,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21178,7 +20926,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21236,7 +20984,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21268,6 +21016,76 @@ } } }, + "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, @@ -22980,7 +22798,7 @@ } } }, - "MentionableSelectComponentForMessageRequest": { + "MentionableSelect": { "type": "object", "properties": { "type": { @@ -23051,77 +22869,6 @@ "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": {} @@ -23374,6 +23121,309 @@ "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": { @@ -23429,6 +23479,212 @@ "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": [ @@ -23475,6 +23731,70 @@ ], "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": { @@ -23521,7 +23841,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -23645,7 +23965,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -24283,28 +24603,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ActionRowComponentResponse" + "$ref": "#/components/schemas/MessageComponentActionRowResponse" }, { - "$ref": "#/components/schemas/ButtonComponentResponse" + "$ref": "#/components/schemas/MessageComponentButtonResponse" }, { - "$ref": "#/components/schemas/ChannelSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" }, { - "$ref": "#/components/schemas/MentionableSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentInputTextResponse" }, { - "$ref": "#/components/schemas/RoleSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" }, { - "$ref": "#/components/schemas/StringSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" }, { - "$ref": "#/components/schemas/TextInputComponentResponse" + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" }, { - "$ref": "#/components/schemas/UserSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" } ] } @@ -24920,28 +25240,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ActionRowComponentResponse" + "$ref": "#/components/schemas/MessageComponentActionRowResponse" }, { - "$ref": "#/components/schemas/ButtonComponentResponse" + "$ref": "#/components/schemas/MessageComponentButtonResponse" }, { - "$ref": "#/components/schemas/ChannelSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" }, { - "$ref": "#/components/schemas/MentionableSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentInputTextResponse" }, { - "$ref": "#/components/schemas/RoleSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" }, { - "$ref": "#/components/schemas/StringSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" }, { - "$ref": "#/components/schemas/TextInputComponentResponse" + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" }, { - "$ref": "#/components/schemas/UserSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" } ] } @@ -24994,6 +25314,32 @@ "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": { @@ -25010,7 +25356,7 @@ "format": "int32" }, "data": { - "$ref": "#/components/schemas/ModalInteractionCallbackRequestData" + "$ref": "#/components/schemas/ModalInteractionCallbackData" } }, "required": [ @@ -25018,32 +25364,6 @@ "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": { @@ -27155,7 +27475,7 @@ } } }, - "RoleSelectComponentForMessageRequest": { + "RoleSelect": { "type": "object", "properties": { "type": { @@ -27219,70 +27539,6 @@ "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": { @@ -27476,6 +27732,85 @@ "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": { @@ -28331,7 +28666,7 @@ ], "format": "int32" }, - "StringSelectComponentForMessageRequest": { + "StringSelect": { "type": "object", "properties": { "type": { @@ -28382,7 +28717,7 @@ "options": { "type": "array", "items": { - "$ref": "#/components/schemas/StringSelectOptionForMessageRequest" + "$ref": "#/components/schemas/SelectOption" }, "minItems": 1, "maxItems": 25 @@ -28394,147 +28729,6 @@ "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": { @@ -28602,148 +28796,7 @@ "members" ] }, - "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": { + "TextStyleTypes": { "type": "integer", "oneOf": [ { @@ -29910,7 +29963,7 @@ "flags" ] }, - "UserSelectComponentForMessageRequest": { + "UserSelect": { "type": "object", "properties": { "type": { @@ -29974,70 +30027,6 @@ "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 96dd1e0..eab2005 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -9484,7 +9484,7 @@ "id" ] }, - "ActionRowComponentForMessageRequest": { + "ActionRow": { "type": "object", "properties": { "type": { @@ -9504,22 +9504,25 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ButtonComponentForMessageRequest" + "$ref": "#/components/schemas/Button" }, { - "$ref": "#/components/schemas/ChannelSelectComponentForMessageRequest" + "$ref": "#/components/schemas/ChannelSelect" }, { - "$ref": "#/components/schemas/MentionableSelectComponentForMessageRequest" + "$ref": "#/components/schemas/InputText" }, { - "$ref": "#/components/schemas/RoleSelectComponentForMessageRequest" + "$ref": "#/components/schemas/MentionableSelect" }, { - "$ref": "#/components/schemas/StringSelectComponentForMessageRequest" + "$ref": "#/components/schemas/RoleSelect" }, { - "$ref": "#/components/schemas/UserSelectComponentForMessageRequest" + "$ref": "#/components/schemas/StringSelect" + }, + { + "$ref": "#/components/schemas/UserSelect" } ] }, @@ -9532,91 +9535,6 @@ "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": { @@ -13819,7 +13737,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -13966,28 +13884,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ActionRowComponentResponse" + "$ref": "#/components/schemas/MessageComponentActionRowResponse" }, { - "$ref": "#/components/schemas/ButtonComponentResponse" + "$ref": "#/components/schemas/MessageComponentButtonResponse" }, { - "$ref": "#/components/schemas/ChannelSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" }, { - "$ref": "#/components/schemas/MentionableSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentInputTextResponse" }, { - "$ref": "#/components/schemas/RoleSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" }, { - "$ref": "#/components/schemas/StringSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" }, { - "$ref": "#/components/schemas/TextInputComponentResponse" + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" }, { - "$ref": "#/components/schemas/UserSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" } ] } @@ -14365,7 +14283,7 @@ "failed_users" ] }, - "ButtonComponentForMessageRequest": { + "Button": { "type": "object", "properties": { "type": { @@ -14403,6 +14321,16 @@ "null" ] }, + "emoji": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/Emoji" + } + ] + }, "url": { "type": [ "string", @@ -14420,16 +14348,6 @@ "$ref": "#/components/schemas/SnowflakeType" } ] - }, - "emoji": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ComponentEmojiForMessageRequest" - } - ] } }, "required": [ @@ -14437,81 +14355,6 @@ "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": [ @@ -14755,7 +14598,7 @@ ], "format": "int32" }, - "ChannelSelectComponentForMessageRequest": { + "ChannelSelect": { "type": "object", "properties": { "type": { @@ -14829,80 +14672,6 @@ "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": { @@ -15065,55 +14834,6 @@ "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": { @@ -16710,6 +16430,34 @@ "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": { @@ -21092,7 +20840,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21166,7 +20914,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21274,7 +21022,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21332,7 +21080,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -21364,6 +21112,76 @@ } } }, + "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, @@ -23092,7 +22910,7 @@ } } }, - "MentionableSelectComponentForMessageRequest": { + "MentionableSelect": { "type": "object", "properties": { "type": { @@ -23163,77 +22981,6 @@ "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": {} @@ -23486,6 +23233,309 @@ "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": { @@ -23541,6 +23591,212 @@ "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": [ @@ -23587,6 +23843,70 @@ ], "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": { @@ -23633,7 +23953,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -23757,7 +24077,7 @@ "null" ], "items": { - "$ref": "#/components/schemas/ActionRowComponentForMessageRequest" + "$ref": "#/components/schemas/ActionRow" }, "maxItems": 5 }, @@ -24395,28 +24715,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ActionRowComponentResponse" + "$ref": "#/components/schemas/MessageComponentActionRowResponse" }, { - "$ref": "#/components/schemas/ButtonComponentResponse" + "$ref": "#/components/schemas/MessageComponentButtonResponse" }, { - "$ref": "#/components/schemas/ChannelSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" }, { - "$ref": "#/components/schemas/MentionableSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentInputTextResponse" }, { - "$ref": "#/components/schemas/RoleSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" }, { - "$ref": "#/components/schemas/StringSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" }, { - "$ref": "#/components/schemas/TextInputComponentResponse" + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" }, { - "$ref": "#/components/schemas/UserSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" } ] } @@ -25032,28 +25352,28 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/ActionRowComponentResponse" + "$ref": "#/components/schemas/MessageComponentActionRowResponse" }, { - "$ref": "#/components/schemas/ButtonComponentResponse" + "$ref": "#/components/schemas/MessageComponentButtonResponse" }, { - "$ref": "#/components/schemas/ChannelSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentChannelSelectResponse" }, { - "$ref": "#/components/schemas/MentionableSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentInputTextResponse" }, { - "$ref": "#/components/schemas/RoleSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse" }, { - "$ref": "#/components/schemas/StringSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentRoleSelectResponse" }, { - "$ref": "#/components/schemas/TextInputComponentResponse" + "$ref": "#/components/schemas/MessageComponentStringSelectResponse" }, { - "$ref": "#/components/schemas/UserSelectComponentResponse" + "$ref": "#/components/schemas/MessageComponentUserSelectResponse" } ] } @@ -25106,6 +25426,32 @@ "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": { @@ -25122,7 +25468,7 @@ "format": "int32" }, "data": { - "$ref": "#/components/schemas/ModalInteractionCallbackRequestData" + "$ref": "#/components/schemas/ModalInteractionCallbackData" } }, "required": [ @@ -25130,32 +25476,6 @@ "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": { @@ -27560,7 +27880,7 @@ } } }, - "RoleSelectComponentForMessageRequest": { + "RoleSelect": { "type": "object", "properties": { "type": { @@ -27624,70 +27944,6 @@ "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": { @@ -27905,6 +28161,85 @@ "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": { @@ -28790,7 +29125,7 @@ ], "format": "int32" }, - "StringSelectComponentForMessageRequest": { + "StringSelect": { "type": "object", "properties": { "type": { @@ -28841,7 +29176,7 @@ "options": { "type": "array", "items": { - "$ref": "#/components/schemas/StringSelectOptionForMessageRequest" + "$ref": "#/components/schemas/SelectOption" }, "minItems": 1, "maxItems": 25 @@ -28853,147 +29188,6 @@ "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": { @@ -29061,148 +29255,7 @@ "members" ] }, - "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": { + "TextStyleTypes": { "type": "integer", "oneOf": [ { @@ -30370,7 +30423,7 @@ "flags" ] }, - "UserSelectComponentForMessageRequest": { + "UserSelect": { "type": "object", "properties": { "type": { @@ -30434,70 +30487,6 @@ "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": {