Fix channel permission overwrites not being accounted for (#574)

This commit is contained in:
Amish Shah
2016-08-31 13:41:07 +01:00
parent dbda589088
commit b18aaa8711
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -137,7 +137,7 @@ class GuildChannel extends Channel {
const roleOverwrites = [];
const memberOverwrites = [];
for (const overwrite of this.permissionOverwrites) {
for (const overwrite of this.permissionOverwrites.values()) {
if (overwrite.id === member.id) {
memberOverwrites.push(overwrite);
} else if (memberRoles.indexOf(overwrite.id) > -1) {