mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
fix(VoiceConnection): compare new speaking to old to avoid TypeError
This commit is contained in:
parent
2ba00038d1
commit
01476de582
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ class VoiceConnection extends EventEmitter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guild && user && !old.equals(speaking)) {
|
if (guild && user && !speaking.equals(old)) {
|
||||||
const member = guild.member(user);
|
const member = guild.member(user);
|
||||||
if (member) {
|
if (member) {
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue