mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(guild): fix typo accessing user instead of users (#7537)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user