fix(GuildChannelManager): Access resolveId correctly (v13) (#8297)

This commit is contained in:
Jiralite
2022-07-17 17:51:39 +01:00
committed by GitHub
parent 8fe166dcfd
commit beb3d8ec26

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 });