This commit is contained in:
Lamp 2018-08-22 12:25:14 -07:00 committed by GitHub
parent c67adda7b2
commit f387c77f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,9 +20,9 @@
if (oldState.channelID != vcid && newState.channelID == vcid) {
// member joined the channel
newState.member.roles.add(newState.member.guild.roles.get(rid));
} else if (oldState.channelI == vcid && newState.channelID != vcid) {
} else if (oldState.channelID == vcid && newState.channelID != vcid) {
// member left the channel
newState.member.roles.remove(newState.member.guild.roles.get(rid));
}
});
})();
})();