Check if voice exists before trying to stop it
This commit is contained in:
parent
762bc7c3dc
commit
c3e8e0fac6
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue