fix: remove for..in in favor of Object.keys (#3745)

This commit is contained in:
SpaceEEC
2020-01-31 12:38:47 +01:00
committed by GitHub
parent ab7f9e80b4
commit 6d7e1e4953
5 changed files with 5 additions and 5 deletions

View File

@@ -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);