mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(Guild): setChannelPositions null parenting (#5841)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user