Fixed bad wording

This commit is contained in:
abalabahaha
2016-03-20 00:05:19 -07:00
parent 28b7b9f5d6
commit 99af4a7d66
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ var ServerChannel = (function (_Channel) {
this.permissionOverwrites.forEach(function (overwrite) {
if (overwrite.type === "member" && overwrite.id === user.id) {
memberOverwrites.push(overwrite);
} else if (overwrite.type === "role" && overwrite.id in userRolesID) {
} else if (overwrite.type === "role" && ~userRolesID.indexOf(overwrite.id)) {
roleOverwrites.push(overwrite);
}
});