From 2047be523ce678def4d015a0186dd54cede5ca19 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 24 Jun 2021 17:27:20 -0500 Subject: actually error like it's supposed to for invalid player profiles --- build/hypixel.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build/hypixel.js') diff --git a/build/hypixel.js b/build/hypixel.js index 4e9a2a2..8750170 100644 --- a/build/hypixel.js +++ b/build/hypixel.js @@ -122,6 +122,8 @@ exports.fetchUser = fetchUser; */ async function fetchMemberProfile(user, profile, customization) { const playerUuid = await cached.uuidFromUser(user); + if (!playerUuid) + return; // we don't await the promise immediately so it can load while we do other stuff const websiteAccountPromise = customization ? database_1.fetchAccount(playerUuid) : null; const profileUuid = await cached.fetchProfileUuid(user, profile); -- cgit