1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Changed up what to do in the case voice gets stuck in a bad state

This commit is contained in:
phxntxm 2016-08-23 19:21:56 -05:00
parent 96c77a21db
commit 48c1f75bd0

View file

@ -233,7 +233,8 @@ class Music:
"You can either try again, or try to change the server's region and see if that fixes the issue")
return
except discord.ClientException:
await state.voice.move_to(summoned_channel)
await self.bot.voice_client_in(ctx.message.server).disconnect()
await ctx.invoke(self.summon)
# Return true so that we can invoke this, and ensure we succeeded
return True