Skip to content

Commit

Permalink
fix(GuildMemberManager): nick endpoint (#7151)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Dec 26, 2021
1 parent fc4292e commit d0c3961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/GuildMemberManager.js
Expand Up @@ -268,7 +268,7 @@ class GuildMemberManager extends CachedManager {

let endpoint = this.client.api.guilds(this.guild.id);
if (id === this.client.user.id) {
const keys = Object.keys(_data);
const keys = Object.keys(data);
if (keys.length === 1 && keys[0] === 'nick') endpoint = endpoint.members('@me');
else endpoint = endpoint.members(id);
} else {
Expand Down

0 comments on commit d0c3961

Please sign in to comment.