fix(Guild): setChannelPositions null parenting (#5841)

This commit is contained in:
monbrey
2021-06-14 04:31:06 +10:00
committed by GitHub
parent 77c1f15c9f
commit 01a1fd615b
2 changed files with 2 additions and 2 deletions

View File

@@ -1141,7 +1141,7 @@ class Guild extends BaseGuild {
id: this.client.channels.resolveID(r.channel),
position: r.position,
lock_permissions: r.lockPermissions,
parent_id: this.channels.resolveID(r.parent),
parent_id: typeof r.parent !== 'undefined' ? this.channels.resolveID(r.parent) : undefined,
}));
return this.client.api