mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
fix(GuildChannel#lockPermissions): Properties allow and deny always returning undefined (#2800)
* fix undefined properties * requested changes
This commit is contained in:
parent
58ba2c7b14
commit
1fc84a95d0
1 changed files with 2 additions and 2 deletions
|
|
@ -265,8 +265,8 @@ class GuildChannel extends Channel {
|
||||||
lockPermissions() {
|
lockPermissions() {
|
||||||
if (!this.parent) return Promise.reject(new TypeError('Could not find a parent to this guild channel.'));
|
if (!this.parent) return Promise.reject(new TypeError('Could not find a parent to this guild channel.'));
|
||||||
const permissionOverwrites = this.parent.permissionOverwrites.map(overwrite => ({
|
const permissionOverwrites = this.parent.permissionOverwrites.map(overwrite => ({
|
||||||
deny: overwrite.deny.bitfield,
|
deny: overwrite.deny,
|
||||||
allow: overwrite.allow.bitfield,
|
allow: overwrite.allow,
|
||||||
id: overwrite.id,
|
id: overwrite.id,
|
||||||
type: overwrite.type,
|
type: overwrite.type,
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue