Browse Source

Fix multi-part sending with aiohttp in webhooks.

pull/728/merge
Rapptz 8 years ago
parent
commit
8eb6fa0329
  1. 1
      discord/webhook.py

1
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():

Loading…
Cancel
Save