diff --git a/specs/openapi.json b/specs/openapi.json index 65163ad..88cc39c 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -12720,6 +12720,16 @@ "null" ], "format": "int32" + }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] } }, "required": [ @@ -13152,6 +13162,16 @@ "null" ] }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelSelectDefaultValue" + }, + "maxItems": 25 + }, "channel_types": { "type": [ "array", @@ -13168,6 +13188,21 @@ "custom_id" ] }, + "ChannelSelectDefaultValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ChannelTypes": { "type": "integer", "oneOf": [ @@ -20914,6 +20949,14 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": {}, + "maxItems": 25 } }, "required": [ @@ -22535,6 +22578,16 @@ ], "format": "int32" }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, "reactions": { "type": [ "array", @@ -24085,6 +24138,54 @@ "message_id" ] }, + "ResolvedObjectsResponse": { + "type": "object", + "properties": { + "users": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "members": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/GuildMemberResponse" + } + }, + "channels": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/GuildChannelResponse" + }, + { + "$ref": "#/components/schemas/PrivateChannelResponse" + }, + { + "$ref": "#/components/schemas/PrivateGroupChannelResponse" + }, + { + "$ref": "#/components/schemas/ThreadResponse" + } + ] + } + }, + "roles": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/GuildRoleResponse" + } + } + }, + "required": [ + "users", + "members", + "channels", + "roles" + ] + }, "ResourceChannelResponse": { "type": "object", "properties": { @@ -24452,6 +24553,16 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/RoleSelectDefaultValue" + }, + "maxItems": 25 } }, "required": [ @@ -24459,6 +24570,21 @@ "custom_id" ] }, + "RoleSelectDefaultValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ScheduledEventResponse": { "type": "object", "properties": { @@ -24749,6 +24875,10 @@ } } }, + "SnowflakeSelectDefaultValueTypes": { + "type": "string", + "oneOf": [] + }, "SnowflakeType": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$", @@ -26610,6 +26740,16 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserSelectDefaultValue" + }, + "maxItems": 25 } }, "required": [ @@ -26617,6 +26757,21 @@ "custom_id" ] }, + "UserSelectDefaultValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "VanityURLErrorResponse": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index 803fa1d..ce994f8 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -12720,6 +12720,16 @@ "null" ], "format": "int32" + }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] } }, "required": [ @@ -13152,6 +13162,16 @@ "null" ] }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChannelSelectDefaultValue" + }, + "maxItems": 25 + }, "channel_types": { "type": [ "array", @@ -13168,6 +13188,21 @@ "custom_id" ] }, + "ChannelSelectDefaultValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ChannelTypes": { "type": "integer", "oneOf": [ @@ -20935,6 +20970,14 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": {}, + "maxItems": 25 } }, "required": [ @@ -22556,6 +22599,16 @@ ], "format": "int32" }, + "resolved": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ResolvedObjectsResponse" + } + ] + }, "reactions": { "type": [ "array", @@ -24295,6 +24348,54 @@ "message_id" ] }, + "ResolvedObjectsResponse": { + "type": "object", + "properties": { + "users": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/UserResponse" + } + }, + "members": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/GuildMemberResponse" + } + }, + "channels": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/GuildChannelResponse" + }, + { + "$ref": "#/components/schemas/PrivateChannelResponse" + }, + { + "$ref": "#/components/schemas/PrivateGroupChannelResponse" + }, + { + "$ref": "#/components/schemas/ThreadResponse" + } + ] + } + }, + "roles": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/GuildRoleResponse" + } + } + }, + "required": [ + "users", + "members", + "channels", + "roles" + ] + }, "ResourceChannelResponse": { "type": "object", "properties": { @@ -24662,6 +24763,16 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/RoleSelectDefaultValue" + }, + "maxItems": 25 } }, "required": [ @@ -24669,6 +24780,21 @@ "custom_id" ] }, + "RoleSelectDefaultValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "ScheduledEventResponse": { "type": "object", "properties": { @@ -24969,6 +25095,10 @@ } } }, + "SnowflakeSelectDefaultValueTypes": { + "type": "string", + "oneOf": [] + }, "SnowflakeType": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$", @@ -26841,6 +26971,16 @@ "boolean", "null" ] + }, + "default_values": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/UserSelectDefaultValue" + }, + "maxItems": 25 } }, "required": [ @@ -26848,6 +26988,21 @@ "custom_id" ] }, + "UserSelectDefaultValue": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + }, + "id": { + "$ref": "#/components/schemas/SnowflakeType" + } + }, + "required": [ + "type", + "id" + ] + }, "VanityURLErrorResponse": { "type": "object", "properties": {