Skip to content

Commit

Permalink
fix(ClientDataResolver): return a user in resolveUser when passing gu…
Browse files Browse the repository at this point in the history
…ild (#3719)
  • Loading branch information
SpaceEEC authored Jan 20, 2020
1 parent d8419ac commit 464ef25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/ClientDataResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 464ef25

Please sign in to comment.