Closed cannawen closed 12 months ago
this.client.on("voiceStateUpdate", (oldState, _) => { if (oldState.channel?.members.size === 1) { getVoiceConnection(oldState.guild.id)?.disconnect(); } });
This works to disconnect the bot in discordClient but it messes up the state in our engine because we save the subscription. Leads to the coaching session still being "active" and the auto-connect no longer working.
This works to disconnect the bot in discordClient but it messes up the state in our engine because we save the subscription. Leads to the coaching session still being "active" and the auto-connect no longer working.