fix(VoiceConnection): compare new speaking to old to avoid TypeError

This commit is contained in:
SpaceEEC 2018-10-20 12:12:21 +02:00
parent 2ba00038d1
commit 01476de582
No known key found for this signature in database
GPG key ID: 8C8A2E338661B871

View file

@ -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);
if (member) {
/**