aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/player.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-26 13:17:48 -0500
committermat <github@matdoes.dev>2022-03-26 13:17:48 -0500
commit03537cf0cce0a19740c069c700374cafe176b3b5 (patch)
tree9ce3bd8911c04f8670b6baf504304763cd91325b /src/cleaners/player.ts
parent6b94d0110a52a355758432ff6cd14c80553471ea (diff)
downloadskyblock-api-03537cf0cce0a19740c069c700374cafe176b3b5.tar.gz
skyblock-api-03537cf0cce0a19740c069c700374cafe176b3b5.tar.bz2
skyblock-api-03537cf0cce0a19740c069c700374cafe176b3b5.zip
Change a lot of things to use typed-hypixel-api
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 6467e59..9392826 100644
--- a/src/cleaners/player.ts
+++ b/src/cleaners/player.ts
@@ -1,8 +1,8 @@
-import { PlayerDataResponse as HypixelApiPlayerDataResponse } from 'typed-hypixel-api/build/responses/player'
import { cleanPlayerSkyblockProfiles } from './skyblock/profiles.js'
import { cleanSocialMedia, CleanSocialMedia } from './socialmedia.js'
import { CleanBasicProfile } from './skyblock/profile.js'
import { cleanRank, CleanRank } from './rank.js'
+import typedHypixelApi from 'typed-hypixel-api'
import { undashUuid } from '../util.js'
export interface CleanBasicPlayer {
@@ -16,7 +16,7 @@ export interface CleanPlayer extends CleanBasicPlayer {
profiles?: CleanBasicProfile[]
}
-export async function cleanPlayerResponse(data: HypixelApiPlayerDataResponse['player']): Promise<CleanPlayer | null> {
+export async function cleanPlayerResponse(data: typedHypixelApi.PlayerDataResponse['player']): Promise<CleanPlayer | null> {
// Cleans up a 'player' api response
if (!data)
return null // bruh