diff options
| author | Rapptz <[email protected]> | 2017-08-22 00:26:43 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-22 00:26:43 -0400 |
| commit | 8eb6fa0329b3dd933963b57c4010592576b69898 (patch) | |
| tree | 066f8f387e0efca07f2d4093d2dd9f9302de8fc9 | |
| parent | Don't make session a keyword only argument. (diff) | |
| download | discord.py-8eb6fa0329b3dd933963b57c4010592576b69898.tar.xz discord.py-8eb6fa0329b3dd933963b57c4010592576b69898.zip | |
Fix multi-part sending with aiohttp in webhooks.
| -rw-r--r-- | discord/webhook.py | 1 |
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(): |