fix bug
This commit is contained in:
parent
ce6dc3ba5e
commit
7bee29a24b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class VoiceFactory {
|
||||||
voiceStateUpdate(update: voiceStatus) {
|
voiceStateUpdate(update: voiceStatus) {
|
||||||
const prev = this.userMap.get(update.user_id);
|
const prev = this.userMap.get(update.user_id);
|
||||||
console.log(prev, this.userMap);
|
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);
|
prev.disconnect(update.user_id);
|
||||||
this.onLeave(prev);
|
this.onLeave(prev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue