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
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -2596,7 +2596,7 @@ declare module 'discord.js' {
|
||||
interface ChannelPosition {
|
||||
channel: ChannelResolvable;
|
||||
lockPermissions?: boolean;
|
||||
parent?: CategoryChannelResolvable;
|
||||
parent?: CategoryChannelResolvable | null;
|
||||
position?: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user