aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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():