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
|
GUILD_SYNC = 12
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
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
|
# an empty dispatcher to prevent crashes
|
||||||
self._dispatch = lambda *args: None
|
self._dispatch = lambda *args: None
|
||||||
# generic event listeners
|
# generic event listeners
|
||||||
|
Loading…
x
Reference in New Issue
Block a user