fix: correctly access guild IDs inside managers (#6927)

This commit is contained in:
Rodry
2021-11-01 14:07:55 +00:00
committed by GitHub
parent b6484ac117
commit 2d9ffb8c5b
2 changed files with 4 additions and 4 deletions

View File

@@ -210,9 +210,9 @@ class GuildChannelManager extends CachedManager {
parent_id: typeof r.parent !== 'undefined' ? this.channels.resolveId(r.parent) : undefined,
}));
await this.client.api.guilds(this.id).channels.patch({ data: channelPositions });
await this.client.api.guilds(this.guild.id).channels.patch({ data: channelPositions });
return this.client.actions.GuildChannelsPositionUpdate.handle({
guild_id: this.id,
guild_id: this.guild.id,
channels: channelPositions,
}).guild;
}