Fix more deprecation warnings

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

No files matched your search

+1 -1
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)