From b76b5b42c03ca09789e24d69fc43f01f75637b5c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 21 Nov 2020 22:47:04 -0500 Subject: [PATCH] Fix attribute error during rapid disconnects in VoiceClient. Fix #6039 --- discord/voice_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/voice_client.py b/discord/voice_client.py index 52c881098291..c97cbabb6efc 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -220,6 +220,7 @@ def __init__(self, client, channel): self._player = None self.encoder = None self._lite_nonce = 0 + self.ws = None warn_nacl = not has_nacl supported_modes = (