From c3e8e0fac6aa6810ebda5b89de3fe006c6b811d8 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 27 Jul 2017 13:56:03 -0500 Subject: [PATCH] Check if voice exists before trying to stop it --- cogs/music.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/music.py b/cogs/music.py index e7371ef..0ad119e 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -68,7 +68,8 @@ class VoiceState: def skip(self): self.skip_votes.clear() - self.voice.stop() + if self.voice: + self.voice.stop() def after(self, _=None): if self.user_queue: