mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +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) {
|
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');
|
if (!id) throw new TypeError('INVALID_TYPE', 'user', 'UserResolvable');
|
||||||
query.set('user_id', id);
|
query.set('user_id', id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user