diff --git a/assets/openapi.json b/assets/openapi.json index bea9b0d2..3ae04496 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -2413,7 +2413,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/Attachment_1" + "$ref": "#/components/schemas/Attachment" } }, "embeds": { @@ -2510,6 +2510,12 @@ "poll": { "$ref": "#/components/schemas/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -2817,6 +2823,15 @@ "source_guild": { "$ref": "#/components/schemas/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/components/schemas/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -2824,14 +2839,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -3167,7 +3183,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -3686,7 +3702,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/Attachment_1" + "$ref": "#/components/schemas/Attachment" } }, "embeds": { @@ -6956,6 +6972,107 @@ "name" ] }, + "WebhookExecuteSchema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "username": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "allowed_mentions": { + "type": "object", + "properties": { + "parse": { + "type": "array", + "items": { + "type": "string" + } + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "components": { + "type": "array", + "items": {} + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "payload_json": { + "type": "string" + }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + } + }, + "flags": { + "type": "integer" + }, + "thread_name": { + "type": "string" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "WidgetModifySchema": { "type": "object", "properties": { @@ -8864,9 +8981,175 @@ }, { "name": "voice" + }, + { + "name": "webhooks" } ], "paths": { + "/webhooks/{webhook_id}/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "description": "Returns a webhook object for the given id. Requires the MANAGE_WEBHOOKS permission or to be the owner of the webhook.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIWebhook" + } + } + } + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "webhook_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "webhook_id" + } + ], + "tags": [ + "webhooks" + ] + } + }, + "/webhooks/{webhook_id}/{token}/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "description": "Returns a webhook object for the given id and token.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIWebhook" + } + } + } + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "webhook_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "webhook_id" + }, + { + "name": "token", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "token" + } + ], + "tags": [ + "webhooks" + ] + }, + "post": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookExecuteSchema" + } + } + } + }, + "responses": { + "204": { + "description": "No description available" + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "webhook_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "webhook_id" + }, + { + "name": "token", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "token" + }, + { + "name": "wait", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "waits for server confirmation of message send before response, and returns the created message body" + }, + { + "name": "thread_id", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Send a message to the specified thread within a webhook's channel." + } + ], + "tags": [ + "webhooks" + ] + } + }, "/voice/regions/": { "get": { "security": [ @@ -11739,14 +12022,23 @@ }, "/guilds/{guild_id}/webhooks/": { "get": { + "x-permission-required": "MANAGE_WEBHOOKS", "security": [ { "bearer": [] } ], + "description": "Returns a list of guild webhook objects. Requires the MANAGE_WEBHOOKS permission.", "responses": { - "default": { - "description": "No description available" + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIWebhookArray" + } + } + } } }, "parameters": [ @@ -15249,11 +15541,13 @@ }, "/channels/{channel_id}/webhooks/": { "get": { + "x-permission-required": "MANAGE_WEBHOOKS", "security": [ { "bearer": [] } ], + "description": "Returns a list of channel webhook objects. Requires the MANAGE_WEBHOOKS permission.", "responses": { "200": { "description": "", diff --git a/assets/schemas.json b/assets/schemas.json index 0728bb6a..5226bbad 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -2528,7 +2528,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -2625,6 +2625,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -2938,6 +2944,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -2946,14 +2961,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -3294,7 +3310,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -3824,7 +3840,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -4535,6 +4551,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -4542,6 +4562,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -7340,7 +7361,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -7437,6 +7458,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -7750,6 +7777,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -7758,14 +7794,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -8106,7 +8143,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -8636,7 +8673,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -9347,6 +9384,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -9354,6 +9395,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -12097,7 +12139,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -12194,6 +12236,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -12507,6 +12555,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -12515,14 +12572,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -12863,7 +12921,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -13393,7 +13451,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -14104,6 +14162,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -14111,6 +14173,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -16832,7 +16895,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -16929,6 +16992,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -17242,6 +17311,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -17250,14 +17328,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -17598,7 +17677,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -18128,7 +18207,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -18839,6 +18918,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -18846,6 +18929,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -21589,7 +21673,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -21686,6 +21770,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -21999,6 +22089,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -22007,14 +22106,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -22355,7 +22455,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -22885,7 +22985,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -23596,6 +23696,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -23603,6 +23707,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -26338,7 +26443,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -26435,6 +26540,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -26748,6 +26859,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -26756,14 +26876,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -27104,7 +27225,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -27634,7 +27755,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -28345,6 +28466,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -28352,6 +28477,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -31117,7 +31243,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -31214,6 +31340,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -31527,6 +31659,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -31535,14 +31676,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -31883,7 +32025,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -32413,7 +32555,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -33124,6 +33266,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -33131,6 +33277,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -35860,7 +36007,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -35957,6 +36104,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -36270,6 +36423,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -36278,14 +36440,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -36626,7 +36789,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -37156,7 +37319,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -37867,6 +38030,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -37874,6 +38041,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -40606,7 +40774,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -40703,6 +40871,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -41016,6 +41190,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -41024,14 +41207,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -41372,7 +41556,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -41902,7 +42086,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -42613,6 +42797,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -42620,6 +42808,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -45364,7 +45553,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -45461,6 +45650,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -45774,6 +45969,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -45782,14 +45986,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -46130,7 +46335,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -46660,7 +46865,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -47371,6 +47576,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -47378,6 +47587,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -50125,7 +50335,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -50222,6 +50432,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -50535,6 +50751,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -50543,14 +50768,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -50891,7 +51117,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -51421,7 +51647,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -52132,6 +52358,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -52139,6 +52369,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -54868,7 +55099,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -54965,6 +55196,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -55278,6 +55515,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -55286,14 +55532,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -55634,7 +55881,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -56164,7 +56411,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -56875,6 +57122,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -56882,6 +57133,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -59713,7 +59965,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -59810,6 +60062,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -60123,6 +60381,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -60131,14 +60398,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -60479,7 +60747,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -61009,7 +61277,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -64473,7 +64741,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -64570,6 +64838,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -64883,6 +65157,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -64891,14 +65174,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -65239,7 +65523,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -65769,7 +66053,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -69233,7 +69517,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -69330,6 +69614,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -69643,6 +69933,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -69651,14 +69950,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -69999,7 +70299,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -70529,7 +70829,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -73988,7 +74288,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -74085,6 +74385,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -74398,6 +74704,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -74406,14 +74721,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -74754,7 +75070,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -75284,7 +75600,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -78779,7 +79095,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -78876,6 +79192,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -79189,6 +79511,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -79197,14 +79528,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -79545,7 +79877,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -80075,7 +80407,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -83539,7 +83871,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -83636,6 +83968,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -83949,6 +84287,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -83957,14 +84304,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -84305,7 +84653,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -84835,7 +85183,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -88290,7 +88638,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -88387,6 +88735,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -88700,6 +89054,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -88708,14 +89071,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -89056,7 +89420,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -89586,7 +89950,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -93044,7 +93408,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -93141,6 +93505,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -93454,6 +93824,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -93462,14 +93841,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -93810,7 +94190,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -94340,7 +94720,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -97807,7 +98187,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -97904,6 +98284,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -98217,6 +98603,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -98225,14 +98620,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -98573,7 +98969,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -99103,7 +99499,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -102558,7 +102954,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -102655,6 +103051,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -102968,6 +103370,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -102976,14 +103387,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -103324,7 +103736,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -103854,7 +104266,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -107309,7 +107721,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -107406,6 +107818,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -107719,6 +108137,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -107727,14 +108154,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -108075,7 +108503,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -108605,7 +109033,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -112079,7 +112507,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -112176,6 +112604,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -112489,6 +112923,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -112497,14 +112940,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -112845,7 +113289,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -113375,7 +113819,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -116833,7 +117277,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -116930,6 +117374,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -117243,6 +117693,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -117251,14 +117710,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -117599,7 +118059,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -118129,7 +118589,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -121647,7 +122107,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -121744,6 +122204,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -122057,6 +122523,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -122065,14 +122540,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -122413,7 +122889,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -122943,7 +123419,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -126420,7 +126896,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -126517,6 +126993,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -126830,6 +127312,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -126838,14 +127329,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -127186,7 +127678,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -127716,7 +128208,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -131334,7 +131826,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -131431,6 +131923,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -131744,6 +132242,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -131752,14 +132259,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -132100,7 +132608,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -132630,7 +133138,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -136106,7 +136614,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -136203,6 +136711,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -136516,6 +137030,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -136524,14 +137047,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -136872,7 +137396,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -137402,7 +137926,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -140888,7 +141412,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -140985,6 +141509,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -141298,6 +141828,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -141306,14 +141845,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -141654,7 +142194,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -142184,7 +142724,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -145652,7 +146192,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -145749,6 +146289,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -146062,6 +146608,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -146070,14 +146625,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -146418,7 +146974,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -146948,7 +147504,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -150422,7 +150978,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -150519,6 +151075,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -150832,6 +151394,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -150840,14 +151411,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -151188,7 +151760,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -151718,7 +152290,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -155182,7 +155754,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -155279,6 +155851,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -155592,6 +156170,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -155600,14 +156187,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -155948,7 +156536,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -156478,7 +157066,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -159930,7 +160518,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -160027,6 +160615,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -160340,6 +160934,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -160348,14 +160951,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -160696,7 +161300,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -161226,7 +161830,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -164815,7 +165419,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -164912,6 +165516,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -165225,6 +165835,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -165233,14 +165852,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -165581,7 +166201,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -166111,7 +166731,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -169554,7 +170174,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -169651,6 +170271,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -169964,6 +170590,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -169972,14 +170607,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -170320,7 +170956,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -170850,7 +171486,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -174436,7 +175072,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -174533,6 +175169,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -174846,6 +175488,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -174854,14 +175505,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -175202,7 +175854,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -175732,7 +176384,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -179187,7 +179839,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -179284,6 +179936,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -179597,6 +180255,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -179605,14 +180272,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -179953,7 +180621,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -180483,7 +181151,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -183946,7 +184614,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -184043,6 +184711,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -184356,6 +185030,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -184364,14 +185047,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -184712,7 +185396,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -185242,7 +185926,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -188698,7 +189382,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -188795,6 +189479,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -189108,6 +189798,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -189116,14 +189815,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -189464,7 +190164,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -189994,7 +190694,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -193450,7 +194150,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -193547,6 +194247,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -193860,6 +194566,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -193868,14 +194583,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -194216,7 +194932,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -194746,7 +195462,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -198237,7 +198953,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -198334,6 +199050,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -198647,6 +199369,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -198655,14 +199386,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -199003,7 +199735,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -199533,7 +200265,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -202989,7 +203721,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -203086,6 +203818,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -203399,6 +204137,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -203407,14 +204154,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -203755,7 +204503,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -204285,7 +205033,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -207740,7 +208488,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -207837,6 +208585,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -208150,6 +208904,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -208158,14 +208921,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -208506,7 +209270,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -209036,7 +209800,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -212506,7 +213270,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -212603,6 +213367,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -212916,6 +213686,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -212924,14 +213703,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -213272,7 +214052,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -213802,7 +214582,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -217261,7 +218041,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -217358,6 +218138,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -217671,6 +218457,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -217679,14 +218474,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -218027,7 +218823,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -218557,7 +219353,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -222090,7 +222886,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -222187,6 +222983,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -222500,6 +223302,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -222508,14 +223319,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -222856,7 +223668,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -223386,7 +224198,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -226841,7 +227653,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -226938,6 +227750,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -227251,6 +228069,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -227259,14 +228086,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -227607,7 +228435,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -228137,7 +228965,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -231592,7 +232420,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -231689,6 +232517,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -232002,6 +232836,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -232010,14 +232853,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -232358,7 +233202,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -232888,7 +233732,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -236340,7 +237184,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -236437,6 +237281,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -236750,6 +237600,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -236758,14 +237617,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -237106,7 +237966,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -237636,7 +238496,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -241094,7 +241954,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -241191,6 +242051,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -241504,6 +242370,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -241512,14 +242387,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -241860,7 +242736,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -242390,7 +243266,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -245858,7 +246734,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -245955,6 +246831,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -246268,6 +247150,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -246276,14 +247167,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -246624,7 +247516,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -247154,7 +248046,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -250606,7 +251498,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -250703,6 +251595,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -251016,6 +251914,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -251024,14 +251931,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -251372,7 +252280,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -251902,7 +252810,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -255403,7 +256311,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -255500,6 +256408,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -255813,6 +256727,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -255821,14 +256744,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -256169,7 +257093,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -256699,7 +257623,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -260186,7 +261110,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -260283,6 +261207,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -260596,6 +261526,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -260604,14 +261543,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -260952,7 +261892,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -261482,7 +262422,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -264934,7 +265874,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -265031,6 +265971,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -265344,6 +266290,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -265352,14 +266307,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -265700,7 +266656,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -266230,7 +267186,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -269707,7 +270663,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -269804,6 +270760,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -270117,6 +271079,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -270125,14 +271096,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -270473,7 +271445,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -271003,7 +271975,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -274575,7 +275547,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -274672,6 +275644,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -274985,6 +275963,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -274993,14 +275980,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -275341,7 +276329,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -275871,7 +276859,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -279322,7 +280310,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -279419,6 +280407,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -279732,6 +280726,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -279740,14 +280743,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -280088,7 +281092,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -280618,7 +281622,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -284108,7 +285112,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -284205,6 +285209,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -284518,6 +285528,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -284526,14 +285545,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -284874,7 +285894,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -285404,7 +286424,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -288882,7 +289902,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -288979,6 +289999,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -289292,6 +290318,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -289300,14 +290335,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -289648,7 +290684,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -290178,7 +291214,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -293708,7 +294744,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -293805,6 +294841,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -294118,6 +295160,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -294126,14 +295177,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -294474,7 +295526,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -295004,7 +296056,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -298456,7 +299508,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -298553,6 +299605,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -298866,6 +299924,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -298874,14 +299941,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -299222,7 +300290,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -299752,7 +300820,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -303212,7 +304280,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -303309,6 +304377,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -303622,6 +304696,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -303630,14 +304713,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -303978,7 +305062,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -304508,7 +305592,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -307958,7 +309042,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -308055,6 +309139,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -308368,6 +309458,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -308376,14 +309475,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -308724,7 +309824,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -309254,7 +310354,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -312710,7 +313810,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -312807,6 +313907,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -313120,6 +314226,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -313128,14 +314243,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -313476,7 +314592,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -314006,7 +315122,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -317462,7 +318578,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -317559,6 +318675,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -317872,6 +318994,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -317880,14 +319011,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -318228,7 +319360,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -318758,7 +319890,4861 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "avatar": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "WebhookExecuteSchema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "username": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "allowed_mentions": { + "type": "object", + "properties": { + "parse": { + "type": "array", + "items": { + "type": "string" + } + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "components": { + "type": "array", + "items": {} + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "payload_json": { + "type": "string" + }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + } + }, + "flags": { + "type": "integer" + }, + "thread_name": { + "type": "string" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": [ + "null", + "string" + ] + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_discovery_flags", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset", + "view_nsfw_guilds" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "flags", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -322214,7 +328200,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -322311,6 +328297,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -322624,6 +328616,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -322632,14 +328633,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -322980,7 +328982,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -323510,7 +329512,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -326998,7 +333000,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -327095,6 +333097,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -327408,6 +333416,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -327416,14 +333433,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -327764,7 +333782,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -328294,7 +334312,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -331754,7 +337772,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -331851,6 +337869,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -332164,6 +338188,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -332172,14 +338205,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -332520,7 +338554,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -333050,7 +339084,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -336500,7 +342534,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -336597,6 +342631,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -336910,6 +342950,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -336918,14 +342967,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -337266,7 +343316,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -337796,7 +343846,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -341252,7 +347302,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -341349,6 +347399,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -341662,6 +347718,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -341670,14 +347735,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -342018,7 +348084,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -342548,7 +348614,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -346015,7 +352081,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -346112,6 +352178,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -346425,6 +352497,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -346433,14 +352514,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -346781,7 +352863,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -347311,7 +353393,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -350792,7 +356874,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -350889,6 +356971,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -351202,6 +357290,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -351210,14 +357307,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -351558,7 +357656,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -352088,7 +358186,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -355540,7 +361638,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -355637,6 +361735,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -355950,6 +362054,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -355958,14 +362071,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -356306,7 +362420,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -356836,7 +362950,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -360291,7 +366405,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -360388,6 +366502,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -360701,6 +366821,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -360709,14 +366838,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -361057,7 +367187,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -361587,7 +367717,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -365071,7 +371201,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -365168,6 +371298,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -365481,6 +371617,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -365489,14 +371634,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -365837,7 +371983,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -366367,7 +372513,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -369819,7 +375965,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -369916,6 +376062,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -370229,6 +376381,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -370237,14 +376398,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -370585,7 +376747,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -371115,7 +377277,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -374646,7 +380808,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -374743,6 +380905,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -375056,6 +381224,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -375064,14 +381241,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -375412,7 +381590,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -375942,7 +382120,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -379401,7 +385579,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -379498,6 +385676,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -379811,6 +385995,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -379819,14 +386012,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -380167,7 +386361,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -380697,7 +386891,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -384149,7 +390343,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -384246,6 +390440,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -384559,6 +390759,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -384567,14 +390776,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -384915,7 +391125,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -385445,7 +391655,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -388897,7 +395107,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -388994,6 +395204,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -389307,6 +395523,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -389315,14 +395540,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -389663,7 +395889,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -390193,7 +396419,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -393652,7 +399878,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -393749,6 +399975,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -394062,6 +400294,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -394070,14 +400311,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -394418,7 +400660,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -394948,7 +401190,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -398404,7 +404646,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -398501,6 +404743,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -398814,6 +405062,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -398822,14 +405079,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -399170,7 +405428,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -399700,7 +405958,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -403152,7 +409410,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -403249,6 +409507,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -403562,6 +409826,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -403570,14 +409843,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -403918,7 +410192,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -404448,7 +410722,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -407975,7 +414249,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -408072,6 +414346,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -408385,6 +414665,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -408393,14 +414682,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -408741,7 +415031,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -409271,7 +415561,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -412734,7 +419024,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -412831,6 +419121,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -413144,6 +419440,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -413152,14 +419457,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -413500,7 +419806,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -414030,7 +420336,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -417494,7 +423800,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -417591,6 +423897,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -417904,6 +424216,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -417912,14 +424233,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -418260,7 +424582,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -418790,7 +425112,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -422304,7 +428626,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -422401,6 +428723,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -422714,6 +429042,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -422722,14 +429059,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -423070,7 +429408,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -423600,7 +429938,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -427073,7 +433411,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -427170,6 +433508,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -427483,6 +433827,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -427491,14 +433844,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -427839,7 +434193,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -428369,7 +434723,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -431848,7 +438202,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -431945,6 +438299,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -432258,6 +438618,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -432266,14 +438635,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -432614,7 +438984,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -433144,7 +439514,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -436617,7 +442987,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -436714,6 +443084,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -437027,6 +443403,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -437035,14 +443420,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -437383,7 +443769,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -437913,7 +444299,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -441365,7 +447751,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -441462,6 +447848,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -441775,6 +448167,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -441783,14 +448184,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -442131,7 +448533,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -442661,7 +449063,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -446141,7 +452543,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -446238,6 +452640,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -446551,6 +452959,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -446559,14 +452976,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -446907,7 +453325,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -447437,7 +453855,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -450929,7 +457347,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -451026,6 +457444,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -451339,6 +457763,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -451347,14 +457780,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -451695,7 +458129,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -452225,7 +458659,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -455671,7 +462105,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -455768,6 +462202,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -456081,6 +462521,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -456089,14 +462538,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -456437,7 +462887,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -456967,7 +463417,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -460423,7 +466873,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -460520,6 +466970,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -460833,6 +467289,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -460841,14 +467306,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -461189,7 +467655,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -461719,7 +468185,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -465171,7 +471637,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -465268,6 +471734,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -465581,6 +472053,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -465589,14 +472070,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -465937,7 +472419,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -466467,7 +472949,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -469926,7 +476408,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -470023,6 +476505,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -470336,6 +476824,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -470344,14 +476841,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -470692,7 +477190,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -471222,7 +477720,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -474885,7 +481383,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -474982,6 +481480,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -475295,6 +481799,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -475303,14 +481816,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -475651,7 +482165,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -476181,7 +482695,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -479624,7 +486138,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -479721,6 +486235,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -480034,6 +486554,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -480042,14 +486571,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -480390,7 +486920,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -480920,7 +487450,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -484463,7 +490993,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -484560,6 +491090,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -484873,6 +491409,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -484881,14 +491426,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -485229,7 +491775,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -485759,7 +492305,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -489205,7 +495751,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -489302,6 +495848,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -489615,6 +496167,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -489623,14 +496184,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -489971,7 +496533,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -490501,7 +497063,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -493947,7 +500509,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -494044,6 +500606,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -494357,6 +500925,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -494365,14 +500942,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -494713,7 +501291,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -495243,7 +501821,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -498689,7 +505267,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -498786,6 +505364,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -499099,6 +505683,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -499107,14 +505700,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -499455,7 +506049,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -499985,7 +506579,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -503531,7 +510125,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -503628,6 +510222,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -503941,6 +510541,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -503949,14 +510558,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -504297,7 +510907,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -504827,7 +511437,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -508271,7 +514881,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -508368,6 +514978,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -508681,6 +515297,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -508689,14 +515314,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -509037,7 +515663,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -509567,7 +516193,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -513011,7 +519637,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -513108,6 +519734,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -513421,6 +520053,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -513429,14 +520070,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -513777,7 +520419,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -514307,7 +520949,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -517751,7 +524393,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -517848,6 +524490,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -518161,6 +524809,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -518169,14 +524826,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -518517,7 +525175,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -519047,7 +525705,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -522493,7 +529151,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -522590,6 +529248,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -522903,6 +529567,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -522911,14 +529584,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -523259,7 +529933,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -523789,7 +530463,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -527235,7 +533909,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -527332,6 +534006,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -527645,6 +534325,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -527653,14 +534342,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -528001,7 +534691,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -528531,7 +535221,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -531977,7 +538667,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -532074,6 +538764,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -532387,6 +539083,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -532395,14 +539100,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -532743,7 +539449,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -533273,7 +539979,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -536719,7 +543425,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -536816,6 +543522,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -537129,6 +543841,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -537137,14 +543858,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -537485,7 +544207,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -538015,7 +544737,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -541461,7 +548183,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -541558,6 +548280,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -541871,6 +548599,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -541879,14 +548616,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -542227,7 +548965,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -542757,7 +549495,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -546267,7 +553005,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -546364,6 +553102,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -546677,6 +553421,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -546685,14 +553438,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -547033,7 +553787,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -547563,7 +554317,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -551009,7 +557763,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -551106,6 +557860,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -551419,6 +558179,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -551427,14 +558196,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -551775,7 +558545,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -552305,7 +559075,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -555751,7 +562521,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -555848,6 +562618,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -556161,6 +562937,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -556169,14 +562954,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -556517,7 +563303,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -557047,7 +563833,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -560493,7 +567279,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -560590,6 +567376,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -560903,6 +567695,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -560911,14 +567712,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -561259,7 +568061,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -561789,7 +568591,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -565282,7 +572084,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -565379,6 +572181,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -565692,6 +572500,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -565700,14 +572517,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -566048,7 +572866,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -566578,7 +573396,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -570260,7 +577078,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -570357,6 +577175,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -570670,6 +577494,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -570678,14 +577511,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -571026,7 +577860,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -571556,7 +578390,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -575002,7 +581836,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -575099,6 +581933,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -575412,6 +582252,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -575420,14 +582269,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -575768,7 +582618,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -576298,7 +583148,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -579744,7 +586594,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -579841,6 +586691,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -580154,6 +587010,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -580162,14 +587027,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -580510,7 +587376,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -581040,7 +587906,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -584486,7 +591352,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -584583,6 +591449,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -584896,6 +591768,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -584904,14 +591785,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -585252,7 +592134,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -585782,7 +592664,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -589228,7 +596110,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -589325,6 +596207,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -589638,6 +596526,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -589646,14 +596543,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -589994,7 +596892,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -590524,7 +597422,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -593996,7 +600894,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -594093,6 +600991,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -594406,6 +601310,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -594414,14 +601327,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -594762,7 +601676,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -595292,7 +602206,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -598738,7 +605652,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -598835,6 +605749,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -599148,6 +606068,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -599156,14 +606085,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -599504,7 +606434,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -600034,7 +606964,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -603478,7 +610408,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -603575,6 +610505,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -603888,6 +610824,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -603896,14 +610841,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -604244,7 +611190,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -604774,7 +611720,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -608241,7 +615187,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -608338,6 +615284,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -608651,6 +615603,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -608659,14 +615620,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -609007,7 +615969,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -609537,7 +616499,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -612997,7 +619959,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -613094,6 +620056,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -613407,6 +620375,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -613415,14 +620392,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -613763,7 +620741,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -614293,7 +621271,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -617872,7 +624850,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -617969,6 +624947,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -618282,6 +625266,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -618290,14 +625283,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -618638,7 +625632,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -619168,7 +626162,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -622638,7 +629632,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -622735,6 +629729,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -623048,6 +630048,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -623056,14 +630065,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -623404,7 +630414,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -623934,7 +630944,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -627398,7 +634408,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -627495,6 +634505,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -627808,6 +634824,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -627816,14 +634841,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -628164,7 +635190,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -628694,7 +635720,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -632150,7 +639176,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -632247,6 +639273,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -632560,6 +639592,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -632568,14 +639609,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -632916,7 +639958,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -633446,7 +640488,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -636902,7 +643944,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -636999,6 +644041,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -637312,6 +644360,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -637320,14 +644377,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -637668,7 +644726,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -638198,7 +645256,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -641641,7 +648699,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -641738,6 +648796,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -642051,6 +649115,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -642059,14 +649132,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -642407,7 +649481,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -642937,7 +650011,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -646395,7 +653469,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -646492,6 +653566,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -646805,6 +653885,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -646813,14 +653902,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -647161,7 +654251,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -647691,7 +654781,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -651146,7 +658236,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -651243,6 +658333,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -651556,6 +658652,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -651564,14 +658669,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -651912,7 +659018,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -652442,7 +659548,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -655912,7 +663018,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -656009,6 +663115,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -656322,6 +663434,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -656330,14 +663451,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -656678,7 +663800,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -657208,7 +664330,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -660682,7 +667804,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -660779,6 +667901,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -661092,6 +668220,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -661100,14 +668237,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -661448,7 +668586,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -661978,7 +669116,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -665431,7 +672569,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -665528,6 +672666,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -665841,6 +672985,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -665849,14 +673002,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -666197,7 +673351,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -666727,7 +673881,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -670179,7 +677333,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -670276,6 +677430,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -670589,6 +677749,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -670597,14 +677766,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -670945,7 +678115,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -671475,7 +678645,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -674927,7 +682097,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -675024,6 +682194,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -675337,6 +682513,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -675345,14 +682530,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -675693,7 +682879,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -676223,7 +683409,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -679681,7 +686867,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -679778,6 +686964,12 @@ "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -680091,6 +687283,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -680099,14 +687300,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -680447,7 +687649,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -680977,7 +688179,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index 9e41b453..a6cad51c 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -16,8 +16,8 @@ along with this program. If not, see . */ -import { checkToken, Rights } from "@spacebar/util"; import * as Sentry from "@sentry/node"; +import { checkToken, Rights } from "@spacebar/util"; import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; @@ -32,7 +32,7 @@ export const NO_AUTHORIZATION_ROUTES = [ "/auth/forgot", "/auth/reset", // Routes with a seperate auth system - "/webhooks/", + /\/webhooks\/\d+\/\w+\/?/, // no token requires auth // Public information endpoints "/ping", "/gateway", diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts index d54756a1..2060760d 100644 --- a/src/api/routes/channels/#channel_id/webhooks.ts +++ b/src/api/routes/channels/#channel_id/webhooks.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -26,8 +26,8 @@ import { WebhookCreateSchema, WebhookType, handleFile, - trimSpecial, isTextChannel, + trimSpecial, } from "@spacebar/util"; import crypto from "crypto"; import { Request, Response, Router } from "express"; @@ -35,10 +35,12 @@ import { HTTPError } from "lambert-server"; const router: Router = Router(); -//TODO: implement webhooks router.get( "/", route({ + description: + "Returns a list of channel webhook objects. Requires the MANAGE_WEBHOOKS permission.", + permission: "MANAGE_WEBHOOKS", responses: { 200: { body: "APIWebhookArray", @@ -46,7 +48,32 @@ router.get( }, }), async (req: Request, res: Response) => { - res.json([]); + const { channel_id } = req.params; + const webhooks = await Webhook.find({ + where: { channel_id }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json( + webhooks.map((webhook) => ({ + ...webhook, + url: + instanceUrl + + "/webhooks/" + + webhook.id + + "/" + + webhook.token, + })), + ); }, ); @@ -89,15 +116,15 @@ router.post( if (avatar) avatar = await handleFile(`/avatars/${channel_id}`, avatar); - const hook = Webhook.create({ + const hook = await Webhook.create({ type: WebhookType.Incoming, name, avatar, guild_id: channel.guild_id, channel_id: channel.id, user_id: req.user_id, - token: crypto.randomBytes(24).toString("base64"), - }); + token: crypto.randomBytes(24).toString("base64url"), + }).save(); const user = await User.getPublicUser(req.user_id); diff --git a/src/api/routes/guilds/#guild_id/webhooks.ts b/src/api/routes/guilds/#guild_id/webhooks.ts index d58659a4..47e19947 100644 --- a/src/api/routes/guilds/#guild_id/webhooks.ts +++ b/src/api/routes/guilds/#guild_id/webhooks.ts @@ -1,27 +1,66 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -import { Router, Response, Request } from "express"; import { route } from "@spacebar/api"; +import { Config, Webhook } from "@spacebar/util"; +import { Request, Response, Router } from "express"; const router = Router(); -//TODO: implement webhooks -router.get("/", route({}), async (req: Request, res: Response) => { - res.json([]); -}); +router.get( + "/", + route({ + description: + "Returns a list of guild webhook objects. Requires the MANAGE_WEBHOOKS permission.", + permission: "MANAGE_WEBHOOKS", + responses: { + 200: { + body: "APIWebhookArray", + }, + }, + }), + async (req: Request, res: Response) => { + const { guild_id } = req.params; + const webhooks = await Webhook.find({ + where: { guild_id }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json( + webhooks.map((webhook) => ({ + ...webhook, + url: + instanceUrl + + "/webhooks/" + + webhook.id + + "/" + + webhook.token, + })), + ); + }, +); + export default router; diff --git a/src/api/routes/webhooks/#webhook_id/#token/index.ts b/src/api/routes/webhooks/#webhook_id/#token/index.ts new file mode 100644 index 00000000..8e0ad0dd --- /dev/null +++ b/src/api/routes/webhooks/#webhook_id/#token/index.ts @@ -0,0 +1,251 @@ +import { handleMessage, postHandleMessage, route } from "@spacebar/api"; +import { + Attachment, + Config, + DiscordApiErrors, + FieldErrors, + Message, + MessageCreateEvent, + Webhook, + WebhookExecuteSchema, + emitEvent, + uploadFile, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +import multer from "multer"; +import { MoreThan } from "typeorm"; +const router = Router(); + +router.get( + "/", + route({ + description: "Returns a webhook object for the given id and token.", + responses: { + 200: { + body: "APIWebhook", + }, + 404: {}, + }, + }), + async (req: Request, res: Response) => { + const { webhook_id, token } = req.params; + const webhook = await Webhook.findOne({ + where: { + id: webhook_id, + }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + if (!webhook) { + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + } + + if (webhook.token !== token) { + throw DiscordApiErrors.INVALID_WEBHOOK_TOKEN_PROVIDED; + } + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json({ + ...webhook, + url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token, + }); + }, +); + +// TODO: config max upload size +const messageUpload = multer({ + limits: { + fileSize: Config.get().limits.message.maxAttachmentSize, + fields: 10, + // files: 1 + }, + storage: multer.memoryStorage(), +}); // max upload 50 mb + +// https://discord.com/developers/docs/resources/webhook#execute-webhook +// TODO: GitHub/Slack compatible hooks +router.post( + "/", + messageUpload.any(), + (req, res, next) => { + if (req.body.payload_json) { + req.body = JSON.parse(req.body.payload_json); + } + + next(); + }, + route({ + requestBody: "WebhookExecuteSchema", + query: { + wait: { + type: "boolean", + required: false, + description: + "waits for server confirmation of message send before response, and returns the created message body", + }, + thread_id: { + type: "string", + required: false, + description: + "Send a message to the specified thread within a webhook's channel.", + }, + }, + responses: { + 204: {}, + 400: { + body: "APIErrorResponse", + }, + 404: {}, + }, + }), + async (req: Request, res: Response) => { + const { wait } = req.query; + if (!wait) return res.status(204).send(); + + const { webhook_id, token } = req.params; + + const body = req.body as WebhookExecuteSchema; + const attachments: Attachment[] = []; + + // ensure one of content, embeds, components, or file is present + if ( + !body.content && + !body.embeds && + !body.components && + !body.file && + !body.attachments + ) { + throw DiscordApiErrors.CANNOT_SEND_EMPTY_MESSAGE; + } + + // block username from containing certain words + // TODO: configurable additions + const blockedContains = ["discord", "clyde", "spacebar"]; + for (const word of blockedContains) { + if (body.username?.toLowerCase().includes(word)) { + return res.status(400).json({ + username: [`Username cannot contain "${word}"`], + }); + } + } + + // block username from being certain words + // TODO: configurable additions + const blockedEquals = ["everyone", "here"]; + for (const word of blockedEquals) { + if (body.username?.toLowerCase() === word) { + return res.status(400).json({ + username: [`Username cannot be "${word}"`], + }); + } + } + + const webhook = await Webhook.findOne({ + where: { + id: webhook_id, + }, + relations: ["channel", "guild", "application"], + }); + + if (!webhook) { + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + } + + if (!webhook.channel.isWritable()) { + throw new HTTPError( + `Cannot send messages to channel of type ${webhook.channel.type}`, + 400, + ); + } + + if (webhook.token !== token) { + throw DiscordApiErrors.INVALID_WEBHOOK_TOKEN_PROVIDED; + } + + // TODO: creating messages by users checks if the user can bypass rate limits, we cant do that on webhooks, but maybe we could check the application if there is one? + const limits = Config.get().limits; + if (limits.absoluteRate.register.enabled) { + const count = await Message.count({ + where: { + channel_id: webhook.channel_id, + timestamp: MoreThan( + new Date( + Date.now() - limits.absoluteRate.sendMessage.window, + ), + ), + }, + }); + + if (count >= limits.absoluteRate.sendMessage.limit) + throw FieldErrors({ + channel_id: { + code: "TOO_MANY_MESSAGES", + message: req.t("common:toomany.MESSAGE"), + }, + }); + } + + const files = (req.files as Express.Multer.File[]) ?? []; + for (const currFile of files) { + try { + const file = await uploadFile( + `/attachments/${webhook.channel.id}`, + currFile, + ); + attachments.push( + Attachment.create({ ...file, proxy_url: file.url }), + ); + } catch (error) { + return res.status(400).json({ message: error?.toString() }); + } + } + + // TODO: set username and avatar based on body + + const embeds = body.embeds || []; + const message = await handleMessage({ + ...body, + type: 0, + pinned: false, + webhook_id: webhook.id, + application_id: webhook.application?.id, + embeds, + // TODO: Support thread_id/thread_name once threads are implemented + channel_id: webhook.channel_id, + attachments, + timestamp: new Date(), + }); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + //@ts-ignore dont care2 + message.edited_timestamp = null; + + webhook.channel.last_message_id = message.id; + + await Promise.all([ + message.save(), + emitEvent({ + event: "MESSAGE_CREATE", + channel_id: webhook.channel_id, + data: message, + } as MessageCreateEvent), + ]); + + // no await as it shouldnt block the message send function and silently catch error + postHandleMessage(message).catch((e) => + console.error("[Message] post-message handler failed", e), + ); + + return res.json(message); + }, +); + +export default router; diff --git a/src/api/routes/webhooks/#webhook_id/index.ts b/src/api/routes/webhooks/#webhook_id/index.ts new file mode 100644 index 00000000..59fdb76d --- /dev/null +++ b/src/api/routes/webhooks/#webhook_id/index.ts @@ -0,0 +1,57 @@ +import { route } from "@spacebar/api"; +import { + Config, + DiscordApiErrors, + getPermission, + Webhook, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +const router = Router(); + +router.get( + "/", + route({ + description: + "Returns a webhook object for the given id. Requires the MANAGE_WEBHOOKS permission or to be the owner of the webhook.", + responses: { + 200: { + body: "APIWebhook", + }, + 404: {}, + }, + }), + async (req: Request, res: Response) => { + const { webhook_id } = req.params; + const webhook = await Webhook.findOneOrFail({ + where: { id: webhook_id }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + if (webhook.guild_id) { + const permission = await getPermission( + req.user_id, + webhook.guild_id, + ); + + if (!permission.has("MANAGE_WEBHOOKS")) + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + } else if (webhook.user_id != req.user_id) + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json({ + ...webhook, + url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token, + }); + }, +); + +export default router; diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index c3658668..f037417a 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -43,9 +43,12 @@ import { //CHANNEL_MENTION, USER_MENTION, Webhook, + handleFile, + Permissions, } from "@spacebar/util"; import { HTTPError } from "lambert-server"; import { In } from "typeorm"; +import fetch from "node-fetch"; const allow_empty = false; // TODO: check webhook, application, system author, stickers // TODO: embed gifs/videos/images @@ -93,52 +96,102 @@ export async function handleMessage(opts: MessageOptions): Promise { where: { id: opts.application_id }, }); } + + let permission: undefined | Permissions; if (opts.webhook_id) { message.webhook = await Webhook.findOneOrFail({ where: { id: opts.webhook_id }, }); - } - const permission = await getPermission( - opts.author_id, - channel.guild_id, - opts.channel_id, - ); - permission.hasThrow("SEND_MESSAGES"); - if (permission.cache.member) { - message.member = permission.cache.member; - } + message.author = + (await User.findOne({ + where: { id: opts.webhook_id }, + })) || undefined; - if (opts.tts) permission.hasThrow("SEND_TTS_MESSAGES"); - if (opts.message_reference) { - permission.hasThrow("READ_MESSAGE_HISTORY"); - // code below has to be redone when we add custom message routing - if (message.guild_id !== null) { - const guild = await Guild.findOneOrFail({ - where: { id: channel.guild_id }, + if (!message.author) { + message.author = User.create({ + id: opts.webhook_id, + username: message.webhook.name, + discriminator: "0000", + avatar: message.webhook.avatar, + public_flags: 0, + premium: false, + premium_type: 0, + bot: true, + created_at: new Date(), + verified: true, + rights: "0", + data: { + valid_tokens_since: new Date(), + }, }); - if (!opts.message_reference.guild_id) - opts.message_reference.guild_id = channel.guild_id; - if (!opts.message_reference.channel_id) - opts.message_reference.channel_id = opts.channel_id; - - if (!guild.features.includes("CROSS_CHANNEL_REPLIES")) { - if (opts.message_reference.guild_id !== channel.guild_id) - throw new HTTPError( - "You can only reference messages from this guild", - ); - if (opts.message_reference.channel_id !== opts.channel_id) - throw new HTTPError( - "You can only reference messages from this channel", - ); - } - - message.message_reference = opts.message_reference; + await message.author.save(); + } + + if (opts.username) { + message.username = opts.username; + message.author.username = message.username; + } + if (opts.avatar_url) { + const avatarData = await fetch(opts.avatar_url); + const base64 = await avatarData + .buffer() + .then((x) => x.toString("base64")); + + const dataUri = + "data:" + + avatarData.headers.get("content-type") + + ";base64," + + base64; + + message.avatar = await handleFile( + `/avatars/${opts.webhook_id}`, + dataUri as string, + ); + message.author.avatar = message.avatar; + } + } else { + permission = await getPermission( + opts.author_id, + channel.guild_id, + opts.channel_id, + ); + permission.hasThrow("SEND_MESSAGES"); + if (permission.cache.member) { + message.member = permission.cache.member; + } + + if (opts.tts) permission.hasThrow("SEND_TTS_MESSAGES"); + if (opts.message_reference) { + permission.hasThrow("READ_MESSAGE_HISTORY"); + // code below has to be redone when we add custom message routing + if (message.guild_id !== null) { + const guild = await Guild.findOneOrFail({ + where: { id: channel.guild_id }, + }); + if (!opts.message_reference.guild_id) + opts.message_reference.guild_id = channel.guild_id; + if (!opts.message_reference.channel_id) + opts.message_reference.channel_id = opts.channel_id; + + if (!guild.features.includes("CROSS_CHANNEL_REPLIES")) { + if (opts.message_reference.guild_id !== channel.guild_id) + throw new HTTPError( + "You can only reference messages from this guild", + ); + if (opts.message_reference.channel_id !== opts.channel_id) + throw new HTTPError( + "You can only reference messages from this channel", + ); + } + + message.message_reference = opts.message_reference; + } + /** Q: should be checked if the referenced message exists? ANSWER: NO + otherwise backfilling won't work **/ + message.type = MessageType.REPLY; } - /** Q: should be checked if the referenced message exists? ANSWER: NO - otherwise backfilling won't work **/ - message.type = MessageType.REPLY; } // TODO: stickers/activity @@ -183,14 +236,18 @@ export async function handleMessage(opts: MessageOptions): Promise { const role = await Role.findOneOrFail({ where: { id: mention, guild_id: channel.guild_id }, }); - if (role.mentionable || permission.has("MANAGE_ROLES")) { + if ( + role.mentionable || + opts.webhook_id || + permission?.has("MANAGE_ROLES") + ) { mention_role_ids.push(mention); } }, ), ); - if (permission.has("MENTION_EVERYONE")) { + if (opts.webhook_id || permission?.has("MENTION_EVERYONE")) { mention_everyone = !!content.match(EVERYONE_MENTION) || !!content.match(HERE_MENTION); @@ -316,4 +373,6 @@ interface MessageOptions extends MessageCreateSchema { attachments?: Attachment[]; edited_timestamp?: Date; timestamp?: Date; + username?: string; + avatar_url?: string; } diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index 9ba6ff7e..15423bdb 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -221,6 +221,12 @@ export class Message extends BaseClass { @Column({ type: "simple-json", nullable: true }) poll?: Poll; + @Column({ nullable: true }) + username?: string; + + @Column({ nullable: true }) + avatar?: string; + toJSON(): Message { return { ...this, @@ -237,7 +243,12 @@ export class Message extends BaseClass { reactions: this.reactions ?? undefined, sticker_items: this.sticker_items ?? undefined, message_reference: this.message_reference ?? undefined, - author: this.author?.toPublicUser() ?? undefined, + author: { + ...(this.author?.toPublicUser() ?? undefined), + // Webhooks + username: this.username ?? this.author?.username, + avatar: this.avatar ?? this.author?.avatar, + }, activity: this.activity ?? undefined, application: this.application ?? undefined, components: this.components ?? undefined, diff --git a/src/util/entities/Webhook.ts b/src/util/entities/Webhook.ts index 91498a22..9539d6e8 100644 --- a/src/util/entities/Webhook.ts +++ b/src/util/entities/Webhook.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -35,23 +35,23 @@ export class Webhook extends BaseClass { type: WebhookType; @Column({ nullable: true }) - name?: string; + name: string; @Column({ nullable: true }) - avatar?: string; + avatar: string; @Column({ nullable: true }) token?: string; @Column({ nullable: true }) @RelationId((webhook: Webhook) => webhook.guild) - guild_id: string; + guild_id?: string; @JoinColumn({ name: "guild_id" }) @ManyToOne(() => Guild, { onDelete: "CASCADE", }) - guild: Guild; + guild?: Guild; @Column({ nullable: true }) @RelationId((webhook: Webhook) => webhook.channel) @@ -85,11 +85,23 @@ export class Webhook extends BaseClass { @Column({ nullable: true }) @RelationId((webhook: Webhook) => webhook.guild) - source_guild_id: string; + source_guild_id?: string; @JoinColumn({ name: "source_guild_id" }) @ManyToOne(() => Guild, { onDelete: "CASCADE", }) - source_guild: Guild; + source_guild?: Guild; + + @Column({ nullable: true }) + @RelationId((webhook: Webhook) => webhook.channel) + source_channel_id: string; + + @JoinColumn({ name: "source_channel_id" }) + @ManyToOne(() => Channel, { + onDelete: "CASCADE", + }) + source_channel: Channel; + + url: string; } diff --git a/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts b/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts new file mode 100644 index 00000000..775847e0 --- /dev/null +++ b/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookMessageProperties1721298824927 + implements MigrationInterface +{ + name = "WebhookMessageProperties1721298824927"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` ADD `username` text NULL", + ); + await queryRunner.query( + "ALTER TABLE `messages` ADD `avatar` text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` DROP COLUMN `username`", + ); + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `avatar`"); + } +} diff --git a/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts b/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts new file mode 100644 index 00000000..775847e0 --- /dev/null +++ b/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookMessageProperties1721298824927 + implements MigrationInterface +{ + name = "WebhookMessageProperties1721298824927"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` ADD `username` text NULL", + ); + await queryRunner.query( + "ALTER TABLE `messages` ADD `avatar` text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` DROP COLUMN `username`", + ); + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `avatar`"); + } +} diff --git a/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts b/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts new file mode 100644 index 00000000..bd603f10 --- /dev/null +++ b/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookMessageProperties1721298824927 + implements MigrationInterface +{ + name = "WebhookMessageProperties1721298824927"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages ADD username text NULL"); + await queryRunner.query("ALTER TABLE messages ADD avatar text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages DROP COLUMN username"); + await queryRunner.query("ALTER TABLE messages DROP COLUMN avatar"); + } +} diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 51263dce..15537ca8 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -23,7 +23,7 @@ import { PollMedia, } from "@spacebar/util"; -type Attachment = { +export type MessageCreateAttachment = { id: string; filename: string; }; @@ -57,7 +57,7 @@ export interface MessageCreateSchema { TODO: we should create an interface for attachments TODO: OpenWAAO<-->attachment-style metadata conversion **/ - attachments?: Attachment[]; + attachments?: MessageCreateAttachment[]; sticker_ids?: string[]; components?: ActionRowComponent[]; // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled diff --git a/src/util/schemas/WebhookCreateSchema.ts b/src/util/schemas/WebhookCreateSchema.ts index f92cb63e..7bd0afa8 100644 --- a/src/util/schemas/WebhookCreateSchema.ts +++ b/src/util/schemas/WebhookCreateSchema.ts @@ -16,7 +16,6 @@ along with this program. If not, see . */ -// TODO: webhooks export interface WebhookCreateSchema { /** * @maxLength 80 diff --git a/src/util/schemas/WebhookExecuteSchema.ts b/src/util/schemas/WebhookExecuteSchema.ts new file mode 100644 index 00000000..943cbe9e --- /dev/null +++ b/src/util/schemas/WebhookExecuteSchema.ts @@ -0,0 +1,46 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { Embed } from "../entities"; +import { MessageCreateAttachment } from "./MessageCreateSchema"; + +export interface WebhookExecuteSchema { + content?: string; + username?: string; + avatar_url?: string; + tts?: boolean; + embeds?: Embed[]; + allowed_mentions?: { + parse?: string[]; + roles?: string[]; + users?: string[]; + replied_user?: boolean; + }; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + components?: any[]; + file?: { filename: string }; + payload_json?: string; + /** + TODO: we should create an interface for attachments + TODO: OpenWAAO<-->attachment-style metadata conversion + **/ + attachments?: MessageCreateAttachment[]; + flags?: number; + thread_name?: string; + applied_tags?: string[]; +} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index 44a504cd..4812b535 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -79,5 +79,6 @@ export * from "./VoiceStateUpdateSchema"; export * from "./VoiceVideoSchema"; export * from "./WebAuthnSchema"; export * from "./WebhookCreateSchema"; +export * from "./WebhookExecuteSchema"; export * from "./WidgetModifySchema"; export * from "./responses"; diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index 98ae2d31..a6caae00 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -578,7 +578,7 @@ export const DiscordApiErrors = { UNKNOWN_TOKEN: new ApiError("Unknown token", 10012), UNKNOWN_USER: new ApiError("Unknown user", 10013), UNKNOWN_EMOJI: new ApiError("Unknown emoji", 10014), - UNKNOWN_WEBHOOK: new ApiError("Unknown webhook", 10015), + UNKNOWN_WEBHOOK: new ApiError("Unknown webhook", 10015, 404), UNKNOWN_WEBHOOK_SERVICE: new ApiError("Unknown webhook service", 10016), UNKNOWN_CONNECTION: new ApiError("Unknown connection", 10017, 400), UNKNOWN_SESSION: new ApiError("Unknown session", 10020),