Added an extra exception for when failing to connect to a channel
This commit is contained in:
parent
96489aa850
commit
e02e9ae3ed
|
@ -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:
|
||||
except (asyncio.TimeoutError, discord.ConnectionClosed):
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue