Skip to content

Commit d0c3961

Browse files
authoredDec 26, 2021
fix(GuildMemberManager): nick endpoint (#7151)
1 parent fc4292e commit d0c3961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/managers/GuildMemberManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class GuildMemberManager extends CachedManager {
268268

269269
let endpoint = this.client.api.guilds(this.guild.id);
270270
if (id === this.client.user.id) {
271-
const keys = Object.keys(_data);
271+
const keys = Object.keys(data);
272272
if (keys.length === 1 && keys[0] === 'nick') endpoint = endpoint.members('@me');
273273
else endpoint = endpoint.members(id);
274274
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.