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

Added one more check to joining a voice channel (man there sure are a lot of different errors that can happen with one voice connection call.....)

This commit is contained in:
Phxntxm 2016-10-15 14:46:12 -05:00
parent 1743920b43
commit ee694b59fe

View file

@ -256,7 +256,7 @@ class Music:
try:
state.voice = await self.bot.join_voice_channel(summoned_channel)
# Weird timeout error usually caused by the region someone is in
except (asyncio.TimeoutError, discord.ConnectionClosed):
except (asyncio.TimeoutError, discord.ConnectionClosed, ConnectionResetError):
await self.bot.say(
"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"