From 1fc84a95d0f87d91711ec3dc9270899a93f023f4 Mon Sep 17 00:00:00 2001 From: Ash <28841569+Asshley@users.noreply.github.com> Date: Sun, 26 Aug 2018 14:11:00 -0400 Subject: [PATCH] fix(GuildChannel#lockPermissions): Properties allow and deny always returning undefined (#2800) * fix undefined properties * requested changes --- src/structures/GuildChannel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index c5bf519c2..c385908f6 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -265,8 +265,8 @@ class GuildChannel extends Channel { lockPermissions() { if (!this.parent) return Promise.reject(new TypeError('Could not find a parent to this guild channel.')); const permissionOverwrites = this.parent.permissionOverwrites.map(overwrite => ({ - deny: overwrite.deny.bitfield, - allow: overwrite.allow.bitfield, + deny: overwrite.deny, + allow: overwrite.allow, id: overwrite.id, type: overwrite.type, }));