1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Change a few cases where voice of a state is still none

This commit is contained in:
phxntxm 2017-04-22 00:29:58 -05:00
parent 6be0c4c93d
commit 43de52fae7

View file

@ -325,7 +325,7 @@ class Music:
return
state = self.voice_states.get(ctx.message.guild.id)
if state:
if state and state.voice:
await state.voice.move_to(channel)
return True
else:
@ -408,7 +408,7 @@ class Music:
state = self.voice_states.get(ctx.message.guild.id)
# Stop playing whatever song is playing.
if state and state.voice.is_connected():
if state and state.voice and state.voice.is_connected():
state.voice.stop()
state.songs.clear()