Skip to content

Commit

Permalink
fix(guildmembermanager): use rest in edit (#7356)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Jan 28, 2022
1 parent 72767a1 commit 00ce1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/managers/GuildMemberManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class GuildMemberManager extends CachedManager {
} else {
endpoint = Routes.guildMember(this.guild.id, id);
}
const d = await endpoint.patch({ data: _data, reason });
const d = await this.client.rest.patch(endpoint, { body: _data, reason });

const clone = this.cache.get(id)?._clone();
clone?._patch(d);
Expand Down

0 comments on commit 00ce1c5

Please sign in to comment.