diff options
| author | Rapptz <[email protected]> | 2020-08-05 05:07:44 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-08-05 08:35:43 -0400 |
| commit | 250f29989ba27cbe1891d565969d1b672423354a (patch) | |
| tree | e28e2b77bcc75e0a94efc497ee785a657b6068c2 | |
| parent | Fix NameError and AttributeError in Template and Integrations (diff) | |
| download | discord.py-250f29989ba27cbe1891d565969d1b672423354a.tar.xz discord.py-250f29989ba27cbe1891d565969d1b672423354a.zip | |
Be defensive in case Discord breaks something with WS URLs again
| -rw-r--r-- | discord/voice_client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py index 91a7f6ca..ab9a6406 100644 --- a/discord/voice_client.py +++ b/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 |