From c56b4a76394f362e890e65279ab6f1a8ebb2f930 Mon Sep 17 00:00:00 2001 From: KARONAGAMING <86901628+KARONAGAMING@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:34:56 +0700 Subject: [PATCH] Update voiceStateUpdate.js (#96) correct the spelling --- src/events/bot/guild/voiceStateUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/bot/guild/voiceStateUpdate.js b/src/events/bot/guild/voiceStateUpdate.js index cec0fbd..423566d 100644 --- a/src/events/bot/guild/voiceStateUpdate.js +++ b/src/events/bot/guild/voiceStateUpdate.js @@ -27,7 +27,7 @@ module.exports = async (client, oldState, newState) => { const isBotAlone = oldState.guild.members.me.voice?.channel && oldState.guild.members.me.voice.channel.members.filter((m) => !m.user.bot).size === 0; - const isNotPlaying = !oldStatePlayer.playing && !oldStatePlayer.queue.currennt; + const isNotPlaying = !oldStatePlayer.playing && !oldStatePlayer.queue.current; if (oldStatePlayer.voiceId || oldState.guild.members.me.voice.channelId === oldState.channelId) { if (isBotAlone || isNotPlaying) {