diff options
| author | Rapptz <[email protected]> | 2020-01-22 20:05:00 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-22 20:05:00 -0500 |
| commit | eddbe27f2ef0a2f19d84b470d1f59cde419bde08 (patch) | |
| tree | 0521d94148040303f44116e683ce50eac75ae50d | |
| parent | Minor documentation fixes (diff) | |
| download | discord.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.py | 2 |
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 |