1
0
Fork 0
mirror of synced 2024-05-20 04:22:29 +12:00

Use the guild's voice client to disconnect

This commit is contained in:
Phxntxm 2017-05-15 16:19:04 -05:00
parent 38792b1a0b
commit ccc70f0c4b

View file

@ -328,7 +328,7 @@ class Music:
return False
except discord.ClientException:
if channel.guild.voice_client:
await state.voice.disconnect(force=True)
await channel.guild.voice_client.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()