From 8eb6fa0329b3dd933963b57c4010592576b69898 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 22 Aug 2017 00:26:43 -0400 Subject: [PATCH] Fix multi-part sending with aiohttp in webhooks. --- discord/webhook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/webhook.py b/discord/webhook.py index 5b8af7c4c..b58007870 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -145,6 +145,7 @@ class AsyncWebhookAdapter(WebhookAdapter): if multipart: file = multipart.pop('file', None) + data = aiohttp.FormData() if file: data.add_field('file', file[0], filename=file[1], content_type=file[2]) for key, value in multipart.items():