Skip to content

Commit

Permalink
chore(GuildMemberManager): Update nick path (#7114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Dec 15, 2021
1 parent d1ef2f5 commit 8efc5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/GuildMemberManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,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);
if (keys.length === 1 && keys[0] === 'nick') endpoint = endpoint.members('@me').nick;
if (keys.length === 1 && keys[0] === 'nick') endpoint = endpoint.members('@me');
else endpoint = endpoint.members(id);
} else {
endpoint = endpoint.members(id);
Expand Down

0 comments on commit 8efc5c7

Please sign in to comment.