aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/voice_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index 80ed9b76..82affab4 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -261,7 +261,7 @@ class VoiceClient:
Disconnects this voice client from voice.
"""
- if not force and not self._connected.is_set():
+ if not force and not self.is_connected():
return
self.stop()
@@ -348,7 +348,7 @@ class VoiceClient:
source is not a :class:`AudioSource` or after is not a callable.
"""
- if not self._connected:
+ if not self.is_connected():
raise ClientException('Not connected to voice.')
if self.is_playing():