Browse Source

Fix out of order files being sent in webhooks when there are 10 files.

pull/2522/head
Rapptz 5 years ago
parent
commit
eddbe27f2e
  1. 2
      discord/webhook.py

2
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

Loading…
Cancel
Save