aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-01-22 20:05:00 -0500
committerRapptz <[email protected]>2020-01-22 20:05:00 -0500
commiteddbe27f2ef0a2f19d84b470d1f59cde419bde08 (patch)
tree0521d94148040303f44116e683ce50eac75ae50d
parentMinor documentation fixes (diff)
downloaddiscord.py-eddbe27f2ef0a2f19d84b470d1f59cde419bde08.tar.xz
discord.py-eddbe27f2ef0a2f19d84b470d1f59cde419bde08.zip
Fix out of order files being sent in webhooks when there are 10 files.
-rw-r--r--discord/webhook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index ae2e65a9..cc43bbca 100644
--- a/discord/webhook.py
+++ b/discord/webhook.py
@@ -127,7 +127,7 @@ class WebhookAdapter:
multipart = {
'payload_json': utils.to_json(payload)
}
- for i, file in enumerate(files, start=1):
+ for i, file in enumerate(files):
multipart['file%i' % i] = (file.filename, file.fp, 'application/octet-stream')
data = None