diff --git a/assets/openapi.json b/assets/openapi.json
index b895e6a1..fd2b7c0d 100644
--- a/assets/openapi.json
+++ b/assets/openapi.json
@@ -2514,7 +2514,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -2718,7 +2718,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"bans",
"channel_ordering",
"channels",
@@ -5087,13 +5087,27 @@
"type": "integer"
},
"embeds": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Embed"
- }
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Embed"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"embed": {
- "$ref": "#/components/schemas/Embed"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Embed"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"allowed_mentions": {
"type": "object",
@@ -5347,7 +5361,14 @@
"type": "object",
"properties": {
"embed": {
- "$ref": "#/components/schemas/Embed"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/Embed"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"file": {
"type": "object",
@@ -5386,10 +5407,17 @@
"type": "boolean"
},
"embeds": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/Embed"
- }
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Embed"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"allowed_mentions": {
"type": "object",
@@ -7747,7 +7775,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -7758,7 +7786,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"embeds",
"flags",
@@ -7825,7 +7853,15 @@
"$ref": "#/components/schemas/User"
},
"last_pin_timestamp": {
- "type": "integer"
+ "anyOf": [
+ {
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"default_auto_archive_duration": {
"type": "integer"
@@ -7927,7 +7963,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -7938,7 +7974,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"created_at",
"flags",
"id",
@@ -7995,7 +8031,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8006,7 +8042,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"closed",
@@ -8206,7 +8242,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8217,7 +8253,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"bio",
"bot",
"connected_accounts",
@@ -8315,7 +8351,7 @@
"session_nickname": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8326,7 +8362,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"activities",
"client_info",
"client_status",
@@ -8618,7 +8654,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8629,7 +8665,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"from",
"from_id",
"id",
@@ -8714,7 +8750,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8725,7 +8761,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"external_id",
"id",
"name",
@@ -8928,7 +8964,7 @@
"type": "boolean",
"default": true
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8939,7 +8975,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"afk_timeout",
"allow_accessibility_detection",
"animate_emoji",
@@ -9054,7 +9090,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9065,7 +9101,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"counter",
"id",
"key_id",
@@ -9223,7 +9259,7 @@
"flags": {
"$ref": "#/components/schemas/ThreadMemberFlags"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9234,7 +9270,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"flags",
"id",
@@ -9335,7 +9371,7 @@
"collectibles": {
"$ref": "#/components/schemas/Collectibles"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9346,7 +9382,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"banner",
"bio",
"communication_disabled_until",
@@ -9590,7 +9626,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9601,7 +9637,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"bans",
"channel_ordering",
"channels",
@@ -9656,7 +9692,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9667,7 +9703,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"executor",
"executor_id",
"guild",
@@ -9737,7 +9773,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9748,7 +9784,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"color",
"colors",
"flags",
@@ -9821,7 +9857,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9832,7 +9868,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"code",
"created_at",
"creator",
@@ -9890,7 +9926,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9901,7 +9937,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"animated",
"available",
"groups",
@@ -9958,7 +9994,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9969,7 +10005,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"format_type",
"id",
"name",
@@ -10004,7 +10040,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10015,7 +10051,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"name",
"stickers"
@@ -10096,7 +10132,7 @@
"flags": {
"type": "integer"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10107,7 +10143,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"code",
@@ -10181,7 +10217,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10192,7 +10228,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"deaf",
@@ -10267,7 +10303,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10278,7 +10314,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"application",
"application_id",
"avatar",
@@ -10435,7 +10471,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10446,7 +10482,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"description",
"discoverability_state",
"discovery_eligibility_flags",
@@ -10489,7 +10525,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10500,7 +10536,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"members",
"name",
@@ -10538,7 +10574,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10549,7 +10585,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"membership_state",
"permissions",
@@ -10829,7 +10865,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10840,7 +10876,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"badge_count",
"channel",
"channel_id",
@@ -10927,7 +10963,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10938,7 +10974,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"id",
@@ -10979,7 +11015,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10990,7 +11026,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"filename",
"id",
"message",
@@ -13443,7 +13479,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -13454,7 +13490,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"code",
"consumed",
"expired",
@@ -13565,7 +13601,7 @@
"icon": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -13576,7 +13612,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"is_primary",
"localizations",
@@ -13954,7 +13990,7 @@
"link": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -13965,7 +14001,7 @@
}
},
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"description",
"icon",
"id"
@@ -25874,6 +25910,43 @@
]
}
},
+ "/channels/{channel_id}/attachments/{cloud_attachment_url}": {
+ "delete": {
+ "security": [
+ {
+ "bearer": []
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "No description available"
+ }
+ },
+ "parameters": [
+ {
+ "name": "channel_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "channel_id"
+ },
+ {
+ "name": "cloud_attachment_url",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "cloud_attachment_url"
+ }
+ ],
+ "tags": [
+ "channels"
+ ]
+ }
+ },
"/beaker/": {
"post": {
"security": [
@@ -27010,6 +27083,50 @@
"tags": [
"applications"
]
+ },
+ "delete": {
+ "security": [
+ {
+ "bearer": []
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "No description available"
+ }
+ },
+ "parameters": [
+ {
+ "name": "application_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "application_id"
+ },
+ {
+ "name": "guild_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "guild_id"
+ },
+ {
+ "name": "command_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "command_id"
+ }
+ ],
+ "tags": [
+ "applications"
+ ]
}
},
"/applications/{application_id}/entitlements/": {
@@ -27227,6 +27344,41 @@
"tags": [
"applications"
]
+ },
+ "delete": {
+ "security": [
+ {
+ "bearer": []
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "No description available"
+ }
+ },
+ "parameters": [
+ {
+ "name": "application_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "application_id"
+ },
+ {
+ "name": "command_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "description": "command_id"
+ }
+ ],
+ "tags": [
+ "applications"
+ ]
}
},
"/applications/{application_id}/bot/": {
diff --git a/assets/schemas.json b/assets/schemas.json
index 5007befb..158fea5e 100644
--- a/assets/schemas.json
+++ b/assets/schemas.json
@@ -2640,7 +2640,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -2853,7 +2853,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"bans",
"channel_ordering",
"channels",
@@ -5414,13 +5414,27 @@
"type": "integer"
},
"embeds": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Embed"
- }
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"embed": {
- "$ref": "#/definitions/Embed"
+ "anyOf": [
+ {
+ "$ref": "#/definitions/Embed"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"allowed_mentions": {
"type": "object",
@@ -5680,7 +5694,14 @@
"type": "object",
"properties": {
"embed": {
- "$ref": "#/definitions/Embed"
+ "anyOf": [
+ {
+ "$ref": "#/definitions/Embed"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"file": {
"type": "object",
@@ -5719,10 +5740,17 @@
"type": "boolean"
},
"embeds": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Embed"
- }
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"allowed_mentions": {
"type": "object",
@@ -8226,7 +8254,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8238,7 +8266,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"embeds",
"flags",
@@ -8310,7 +8338,15 @@
"$ref": "#/definitions/User"
},
"last_pin_timestamp": {
- "type": "integer"
+ "anyOf": [
+ {
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"default_auto_archive_duration": {
"type": "integer"
@@ -8412,7 +8448,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8424,7 +8460,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"created_at",
"flags",
"id",
@@ -8483,7 +8519,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8495,7 +8531,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"closed",
@@ -8696,7 +8732,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8708,7 +8744,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"bio",
"bot",
"connected_accounts",
@@ -8807,7 +8843,7 @@
"session_nickname": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -8819,7 +8855,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"activities",
"client_info",
"client_status",
@@ -9120,7 +9156,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9132,7 +9168,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"from",
"from_id",
"id",
@@ -9219,7 +9255,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9231,7 +9267,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"external_id",
"id",
"name",
@@ -9437,7 +9473,7 @@
"type": "boolean",
"default": true
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9449,7 +9485,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"afk_timeout",
"allow_accessibility_detection",
"animate_emoji",
@@ -9577,7 +9613,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9589,7 +9625,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"counter",
"id",
"key_id",
@@ -9770,7 +9806,7 @@
"flags": {
"$ref": "#/definitions/ThreadMemberFlags"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9782,7 +9818,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"flags",
"id",
@@ -9884,7 +9920,7 @@
"collectibles": {
"$ref": "#/definitions/Collectibles"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -9896,7 +9932,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"banner",
"bio",
"communication_disabled_until",
@@ -10149,7 +10185,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10161,7 +10197,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"bans",
"channel_ordering",
"channels",
@@ -10217,7 +10253,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10229,7 +10265,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"executor",
"executor_id",
"guild",
@@ -10300,7 +10336,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10312,7 +10348,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"color",
"colors",
"flags",
@@ -10388,7 +10424,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10400,7 +10436,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"code",
"created_at",
"creator",
@@ -10459,7 +10495,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10471,7 +10507,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"animated",
"available",
"groups",
@@ -10529,7 +10565,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10541,7 +10577,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"format_type",
"id",
"name",
@@ -10577,7 +10613,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10589,7 +10625,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"name",
"stickers"
@@ -10673,7 +10709,7 @@
"flags": {
"type": "integer"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10685,7 +10721,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"code",
@@ -10760,7 +10796,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10772,7 +10808,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"deaf",
@@ -10848,7 +10884,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -10860,7 +10896,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"application",
"application_id",
"avatar",
@@ -11019,7 +11055,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -11031,7 +11067,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"description",
"discoverability_state",
"discovery_eligibility_flags",
@@ -11075,7 +11111,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -11087,7 +11123,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"members",
"name",
@@ -11126,7 +11162,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -11138,7 +11174,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"membership_state",
"permissions",
@@ -11439,7 +11475,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -11451,7 +11487,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"badge_count",
"channel",
"channel_id",
@@ -11543,7 +11579,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -11555,7 +11591,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"channel",
"channel_id",
"id",
@@ -11597,7 +11633,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -11609,7 +11645,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"filename",
"id",
"message",
@@ -14239,7 +14275,7 @@
"id": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -14251,7 +14287,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"code",
"consumed",
"expired",
@@ -14377,7 +14413,7 @@
"icon": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -14389,7 +14425,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"id",
"is_primary",
"localizations",
@@ -14796,7 +14832,7 @@
"link": {
"type": "string"
},
- "__@annotationsKey@12270": {
+ "__@annotationsKey@12271": {
"type": "object",
"additionalProperties": {
"type": "array",
@@ -14808,7 +14844,7 @@
},
"additionalProperties": false,
"required": [
- "__@annotationsKey@12270",
+ "__@annotationsKey@12271",
"description",
"icon",
"id"
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts
index 0c58ff83..4dc4fb83 100644
--- a/src/api/util/handlers/Message.ts
+++ b/src/api/util/handlers/Message.ts
@@ -690,7 +690,7 @@ interface MessageOptions extends MessageCreateSchema {
author_id?: string;
webhook_id?: string;
application_id?: string;
- embeds?: Embed[];
+ embeds?: Embed[] | null;
reactions?: Reaction[];
channel_id?: string;
attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment | Attachment)[]; // why are we masking this?
diff --git a/src/schemas/uncategorised/MessageCreateSchema.ts b/src/schemas/uncategorised/MessageCreateSchema.ts
index 7c0d0728..a1d43d1b 100644
--- a/src/schemas/uncategorised/MessageCreateSchema.ts
+++ b/src/schemas/uncategorised/MessageCreateSchema.ts
@@ -39,8 +39,8 @@ export interface MessageCreateSchema {
channel_id?: string;
tts?: boolean;
flags?: number;
- embeds?: Embed[];
- embed?: Embed;
+ embeds?: Embed[] | null;
+ embed?: Embed | null;
// TODO: ^ embed is deprecated in favor of embeds (https://discord.com/developers/docs/resources/channel#message-object)
allowed_mentions?: {
parse?: string[];
|