mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 05:23:31 +01:00
fix(guildmembermanager): use rest in edit (#7356)
This commit is contained in:
@@ -286,7 +286,7 @@ class GuildMemberManager extends CachedManager {
|
|||||||
} else {
|
} else {
|
||||||
endpoint = Routes.guildMember(this.guild.id, id);
|
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();
|
const clone = this.cache.get(id)?._clone();
|
||||||
clone?._patch(d);
|
clone?._patch(d);
|
||||||
|
|||||||
Reference in New Issue
Block a user