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

Add a check for if the voice channel is None

This commit is contained in:
Phxntxm 2017-04-24 16:21:17 -05:00
parent ca8c3625a4
commit 71772a4e19

View file

@ -302,7 +302,7 @@ class Music:
return
state = self.voice_states.get(ctx.message.guild.id)
if state and state.voice:
if state and state.voice and state.voice.channel:
await state.voice.move_to(channel)
return True
else: