fix voice state updates (#461)

* fix voice state updates

* use .has for backwards compatability and consistency
This commit is contained in:
Jacob
2016-07-13 17:31:19 -07:00
committed by abal
parent cd2642c293
commit f49f1ab3c8
3 changed files with 14 additions and 14 deletions

View File

@@ -227,7 +227,7 @@ export default class Server extends Equality {
eventVoiceLeave(user) {
for (let chan of this.channels.getAll("type", "voice")) {
if (chan.members.has(user)) {
if (chan.members.has("id", user.id)) {
chan.members.remove(user);
user.voiceChannel = null;
return chan;