mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(guildmembermanager): use rest in edit (#7356)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user