diff options
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r-- | src/hypixel.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index a5b8f93..b0bcf03 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -96,8 +96,9 @@ export async function fetchUser({ user, uuid, username }: UserAny, included: Inc playerData = await cached.fetchPlayer(uuid) // if not including profiles, include lightweight profiles just in case if (!includeProfiles) - basicProfilesData = playerData.profiles - playerData.profiles = undefined + basicProfilesData = playerData?.profiles + if (playerData) + playerData.profiles = undefined } if (includeProfiles) { profilesData = await cached.fetchSkyblockProfiles(uuid) |