Take back ownership of files from aiohttp for retrying requests.
Fix #1809
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user