mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 00:34:06 +00:00
Fix gateway code to work with websockets 3.2.
This commit is contained in:
parent
0b6e74ebec
commit
a23e51f6c4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user