fix(GuildChannelManager): Access resolveId correctly (v13)

#8297 v13.9.0
This commit is contained in:
March 7th 2022-07-18 00:57:25 +07:00
parent 0e38d4caf7
commit d454853679

View File

@ -403,7 +403,7 @@ class GuildChannelManager extends CachedManager {
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: typeof r.parent !== 'undefined' ? this.channels.resolveId(r.parent) : undefined, parent_id: typeof r.parent !== 'undefined' ? this.resolveId(r.parent) : undefined,
})); }));
await this.client.api.guilds(this.guild.id).channels.patch({ data: channelPositions }); await this.client.api.guilds(this.guild.id).channels.patch({ data: channelPositions });