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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cleaners/player.ts b/src/cleaners/player.ts
index 6ac1382..b2dfc77 100644
--- a/src/cleaners/player.ts
+++ b/src/cleaners/player.ts
@@ -17,10 +17,10 @@ export interface CleanPlayer extends CleanBasicPlayer {
// first_join?: number
}
-export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPlayer> {
+export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPlayer | null> {
// Cleans up a 'player' api response
if (!data)
- return // bruh
+ return null // bruh
return {
uuid: undashUuid(data.uuid),
username: data.displayname,