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

Added an exception check in case voice gets stuck, and the bot is already ina channel

This commit is contained in:
phxntxm 2016-08-23 19:12:52 -05:00
parent 7cbb788668
commit 96c77a21db

View file

@ -232,6 +232,8 @@ class Music:
"Sorry, I couldn't connect! This can sometimes be caused by the server region you are in. "
"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)
# Return true so that we can invoke this, and ensure we succeeded
return True