mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(ClientDataResolver): return a user in resolveUser when passing guild (#3719)
This commit is contained in:
@@ -46,7 +46,7 @@ class ClientDataResolver {
|
||||
if (typeof user === 'string') return this.client.users.get(user) || null;
|
||||
if (user instanceof GuildMember) return user.user;
|
||||
if (user instanceof Message) return user.author;
|
||||
if (user instanceof Guild) return user.owner;
|
||||
if (user instanceof Guild) return this.resolveUser(user.ownerID);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user