1
0
Fork 0
mirror of synced 2024-05-24 14:29:39 +12:00

Check if voice exists before trying to stop it

This commit is contained in:
Phxntxm 2017-07-27 13:56:03 -05:00
parent 762bc7c3dc
commit c3e8e0fac6

View file

@ -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: