Fix voice channel joining

This commit is contained in:
abalabahaha
2016-09-19 03:41:08 +09:00
parent 53ecaab12a
commit 3bc6ea455d
5 changed files with 11 additions and 11 deletions

View File

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