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

Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite

This commit is contained in:
Phxntxm 2017-04-22 17:54:36 -05:00
commit 543c82a5c4

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:
@ -410,7 +410,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()