mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix channel permission overwrites not being accounted for (#574)
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user