aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-08-22 00:26:43 -0400
committerRapptz <[email protected]>2017-08-22 00:26:43 -0400
commit8eb6fa0329b3dd933963b57c4010592576b69898 (patch)
tree066f8f387e0efca07f2d4093d2dd9f9302de8fc9
parentDon't make session a keyword only argument. (diff)
downloaddiscord.py-8eb6fa0329b3dd933963b57c4010592576b69898.tar.xz
discord.py-8eb6fa0329b3dd933963b57c4010592576b69898.zip
Fix multi-part sending with aiohttp in webhooks.
-rw-r--r--discord/webhook.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index 5b8af7c4..b5800787 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():