Skip to content

Commit

Permalink
Update voiceStateUpdate.js (#96)
Browse files Browse the repository at this point in the history
correct the spelling
  • Loading branch information
KARONAGAMING authored Jan 10, 2025
1 parent a4548b6 commit c56b4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/bot/guild/voiceStateUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c56b4a7

Please sign in to comment.