3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00

Fix resolveUser() returning null in contrast to its typings

This commit is contained in:
Dragory 2020-12-17 03:46:52 +02:00
parent b9d561018b
commit d7da90f409

View file

@ -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