mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
fix(ClientDataResolver): return a user in resolveUser when passing guild (#3719)
This commit is contained in:
parent
d8419ac2c7
commit
464ef25898
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class ClientDataResolver {
|
||||||
if (typeof user === 'string') return this.client.users.get(user) || null;
|
if (typeof user === 'string') return this.client.users.get(user) || null;
|
||||||
if (user instanceof GuildMember) return user.user;
|
if (user instanceof GuildMember) return user.user;
|
||||||
if (user instanceof Message) return user.author;
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue