Update voice client main ws references when reconnecting.
This commit is contained in:
@ -199,6 +199,8 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
||||
ws._dispatch = client.dispatch
|
||||
ws.gateway = gateway
|
||||
|
||||
client.connection._update_references(ws)
|
||||
|
||||
log.info('Created websocket connected to {}'.format(gateway))
|
||||
if not resume:
|
||||
yield from ws.identify()
|
||||
|
Reference in New Issue
Block a user