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 d23fe29..fb8af78 100644
--- a/src/cleaners/player.ts
+++ b/src/cleaners/player.ts
@@ -19,6 +19,8 @@ export interface CleanPlayer extends CleanBasicPlayer {
export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPlayer> {
// Cleans up a 'player' api response
+ if (!data)
+ return // bruh
return {
uuid: undashUuid(data.uuid),
username: data.displayname,