This commit is contained in:
Lamp 2018-08-25 13:07:07 -07:00
commit ccebde805d
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
});
})();
})();