aboutsummaryrefslogtreecommitdiff
path: root/build/hypixel.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/hypixel.js')
-rw-r--r--build/hypixel.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/hypixel.js b/build/hypixel.js
index 1ea844a..9b307b5 100644
--- a/build/hypixel.js
+++ b/build/hypixel.js
@@ -81,8 +81,9 @@ async function fetchUser({ user, uuid, username }, included = ['player']) {
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 === null || playerData === void 0 ? void 0 : playerData.profiles;
+ if (playerData)
+ playerData.profiles = undefined;
}
if (includeProfiles) {
profilesData = await cached.fetchSkyblockProfiles(uuid);