aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/player.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/player.ts')
-rw-r--r--src/cleaners/player.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cleaners/player.ts b/src/cleaners/player.ts
index f4cbb18..d23fe29 100644
--- a/src/cleaners/player.ts
+++ b/src/cleaners/player.ts
@@ -14,6 +14,7 @@ export interface CleanPlayer extends CleanBasicPlayer {
rank: CleanRank
socials: CleanSocialMedia
profiles?: CleanBasicProfile[]
+ first_join: number
}
export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPlayer> {
@@ -23,6 +24,7 @@ export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPla
username: data.displayname,
rank: cleanRank(data),
socials: cleanSocialMedia(data),
+ first_join: data.firstLogin / 1000,
profiles: cleanPlayerSkyblockProfiles(data.stats?.SkyBlock?.profiles)
}
}