aboutsummaryrefslogtreecommitdiff
path: root/src/hypixel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r--src/hypixel.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index f8041f5..bfb826e 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -147,8 +147,9 @@ export async function fetchMemberProfile(user: string, profile: string, customiz
const websiteAccountPromise = customization ? fetchAccount(playerUuid) : null
const profileUuid = await cached.fetchProfileUuid(user, profile)
- // if the profile doesn't have an id, just return
+ // if the profile or player doesn't have an id, just return
if (!profileUuid) return null
+ if (!playerUuid) return null
const player = await cached.fetchPlayer(playerUuid)