This commit is contained in:
MathMan05 2025-05-15 15:49:29 -05:00
parent ce6dc3ba5e
commit 7bee29a24b

View file

@ -89,7 +89,7 @@ class VoiceFactory {
voiceStateUpdate(update: voiceStatus) {
const prev = this.userMap.get(update.user_id);
console.log(prev, this.userMap);
if (prev && update.channel_id !== this.curChan) {
if (prev && prev !== this.voiceChannels.get(update.channel_id)) {
prev.disconnect(update.user_id);
this.onLeave(prev);
}