Skip to content

Commit

Permalink
fix(guild): fix typo accessing user instead of users (#7537)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjammingKirby committed Feb 23, 2022
1 parent 5158332 commit 8203c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class Guild extends AnonymousGuild {
}

if (options.user) {
const id = this.client.user.resolveId(options.user);
const id = this.client.users.resolveId(options.user);
if (!id) throw new TypeError('INVALID_TYPE', 'user', 'UserResolvable');
query.set('user_id', id);
}
Expand Down

0 comments on commit 8203c5d

Please sign in to comment.