Browse Source

fixed version not being set on the voice gateway

pull/101/head
Dan 7 years ago
parent
commit
ec6f423d6c
  1. 2
      disco/voice/client.py

2
disco/voice/client.py

@ -115,7 +115,7 @@ class VoiceClient(LoggingClass):
self.state_emitter.emit(state, prev_state)
def _connect_and_run(self):
self.ws = Websocket('wss://' + self.endpoint + '/v={}'.format(self.VOICE_GATEWAY_VERSION))
self.ws = Websocket('wss://' + self.endpoint + '/?v={}'.format(self.VOICE_GATEWAY_VERSION))
self.ws.emitter.on('on_open', self.on_open)
self.ws.emitter.on('on_error', self.on_error)
self.ws.emitter.on('on_close', self.on_close)

Loading…
Cancel
Save