mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 17:40:07 +00:00
fix: remove for..in in favor of Object.keys (#3745)
This commit is contained in:
@@ -258,7 +258,7 @@ class GuildChannel extends Channel {
|
||||
payload.deny = prevOverwrite.deny;
|
||||
}
|
||||
|
||||
for (const perm in options) {
|
||||
for (const perm of Object.keys(options)) {
|
||||
if (options[perm] === true) {
|
||||
payload.allow |= Permissions.FLAGS[perm] || 0;
|
||||
payload.deny &= ~(Permissions.FLAGS[perm] || 0);
|
||||
|
||||
Reference in New Issue
Block a user