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 --- src/hypixel.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/hypixel.ts b/src/hypixel.ts index bea64fb..eb66d48 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -142,6 +142,7 @@ export async function fetchUser({ user, uuid, username }: UserAny, included: Inc */ export async function fetchMemberProfile(user: string, profile: string, customization: boolean): Promise { 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 ? fetchAccount(playerUuid) : null const profileUuid = await cached.fetchProfileUuid(user, profile) -- cgit