mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +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),
|
id: this.client.channels.resolveID(r.channel),
|
||||||
position: r.position,
|
position: r.position,
|
||||||
lock_permissions: r.lockPermissions,
|
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
|
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 {
|
interface ChannelPosition {
|
||||||
channel: ChannelResolvable;
|
channel: ChannelResolvable;
|
||||||
lockPermissions?: boolean;
|
lockPermissions?: boolean;
|
||||||
parent?: CategoryChannelResolvable;
|
parent?: CategoryChannelResolvable | null;
|
||||||
position?: number;
|
position?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user