mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Fix resolveUser() returning null in contrast to its typings
This commit is contained in:
parent
116c33e341
commit
4a555823fc
1 changed files with 1 additions and 1 deletions
|
@ -1058,7 +1058,7 @@ export async function resolveUser<T>(bot, value) {
|
||||||
|
|
||||||
const userId = resolveUserId(bot, value);
|
const userId = resolveUserId(bot, value);
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
return null;
|
return new UnknownUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we have the user cached, return that directly
|
// If we have the user cached, return that directly
|
||||||
|
|
Loading…
Add table
Reference in a new issue