Browse Source

Be defensive in case Discord breaks something with WS URLs again

pull/5199/head
Rapptz 5 years ago
parent
commit
250f29989b
  1. 4
      discord/voice_client.py

4
discord/voice_client.py

@ -188,6 +188,10 @@ class VoiceClient:
return
self.endpoint, _, _ = endpoint.rpartition(':')
if self.endpoint.startswith('wss://'):
# Just in case, strip it off since we're going to add it later
self.endpoint = self.endpoint[6:]
# This gets set later
self.endpoint_ip = None

Loading…
Cancel
Save