Merge branch 'master' of https://github.com/ledlamp/discord-mpp-bridge
This commit is contained in:
commit
ccebde805d
|
@ -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));
|
||||
}
|
||||
});
|
||||
})();
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue