fix(guildmembermanager): use rest in edit (#7356)

This commit is contained in:
muchnameless
2022-01-28 01:41:52 +01:00
committed by GitHub
parent 72767a1059
commit 00ce1c56ac

View File

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