Fix more deprecation warnings

This commit is contained in:
Rapptz
2019-11-20 03:04:04 -05:00
parent 1b040fd4ba
commit 4ef0fb0d95
3 changed files with 6 additions and 3 deletions

View File

@ -389,7 +389,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
if op == self.INVALIDATE_SESSION:
if data is True:
await asyncio.sleep(5.0, loop=self.loop)
await asyncio.sleep(5.0)
await self.close()
raise ResumeWebSocket(self.shard_id)