mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fix channel permission overwrites not being accounted for (#574)
This commit is contained in:
parent
dbda589088
commit
b18aaa8711
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue