1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Use the guild's voice client

This commit is contained in:
Phxntxm 2017-05-14 20:05:09 -05:00
parent 84c096df4b
commit c519896715

View file

@ -327,7 +327,7 @@ class Music:
await ctx.send("Sorry, but I couldn't connect right now! Please try again later")
return False
except discord.ClientException:
if state.voice:
if channel.guild.voice_client:
await state.voice.disconnect(force=True)
log.warning("Force cleared voice connection on guild {} after being stuck between connected/not connected".format(ctx.message.guild.id))
await channel.connect()