Use the guild's voice client to disconnect
This commit is contained in:
parent
38792b1a0b
commit
ccc70f0c4b
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue