aboutsummaryrefslogtreecommitdiff
path: root/src/hypixelCached.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r--src/hypixelCached.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index d94d1f5..a233380 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -164,7 +164,6 @@ function cleanFullPlayerToCleanPlayer(player: CleanFullPlayer): CleanPlayer {
socials: player.socials,
username: player.username,
uuid: player.uuid,
- claimed: player.claimed,
profiles: player.profiles
}
}
@@ -212,16 +211,13 @@ export async function fetchPlayer<Full extends boolean = true>(user: string, ful
}
/** Fetch a player without their profiles. This is heavily cached. */
-export async function fetchBasicPlayer(user: string, includeClaimed: boolean = true): Promise<CleanPlayer | null> {
+export async function fetchBasicPlayer(user: string): Promise<CleanPlayer | null> {
const playerUuid = await uuidFromUser(user)
if (!playerUuid) return null
if (basicPlayerCache.has(playerUuid)) {
const player = basicPlayerCache.get(playerUuid)!
- if (!includeClaimed) {
- delete player.claimed
- }
return player
}
@@ -232,8 +228,6 @@ export async function fetchBasicPlayer(user: string, includeClaimed: boolean = t
}
delete player.profiles
- if (!includeClaimed)
- delete player.claimed
return player
}