mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-28 15:59:04 +00:00
Fix gateway code to work with websockets 3.2.
This commit is contained in:
1 parent
0b6e74ebec
commit
a23e51f6c4
1 file changed
+2
-1
+2
-1
@@ -155,7 +155,8 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
||||
GUILD_SYNC = 12
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, max_size=None, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.max_size = None
|
||||
# an empty dispatcher to prevent crashes
|
||||
self._dispatch = lambda *args: None
|
||||
# generic event listeners
|
||||
|
||||
Reference in new issue
Block a user