aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-03-18 07:54:36 -0400
committerRapptz <[email protected]>2019-03-18 07:54:36 -0400
commit5e65ec978cf278fefcc5586e2df732bc7a8bed4e (patch)
tree83ad80c9e486a83e725b39d1ad2b3a6e9f48a19b /discord/abc.py
parentMinor typo fix. (diff)
downloaddiscord.py-5e65ec978cf278fefcc5586e2df732bc7a8bed4e.tar.xz
discord.py-5e65ec978cf278fefcc5586e2df732bc7a8bed4e.zip
Take back ownership of files from aiohttp for retrying requests.
Fix #1809
Diffstat (limited to 'discord/abc.py')
-rw-r--r--discord/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 8345786c..2e3e1419 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -756,7 +756,7 @@ class Messageable(metaclass=abc.ABCMeta):
raise InvalidArgument('file parameter must be File')
try:
- data = await state.http.send_files(channel.id, files=[(file.open_file(), file.filename)],
+ data = await state.http.send_files(channel.id, files=[file],
content=content, tts=tts, embed=embed, nonce=nonce)
finally:
file.close()