fix(GuildChannel#lockPermissions): Properties allow and deny always returning undefined (#2800)

* fix undefined properties

* requested changes
This commit is contained in:
Ash
2018-08-26 14:11:00 -04:00
committed by Isabella
parent 58ba2c7b14
commit 1fc84a95d0

View File

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