aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/member.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-27 17:04:47 -0500
committermat <github@matdoes.dev>2022-03-27 17:04:47 -0500
commitb9053538aee604b62ae54538320f930c2c96e0aa (patch)
tree0bff78af3acb122e0d895f05383f1a08d55ab189 /src/cleaners/skyblock/member.ts
parente01d991d518fc6b3f060d805175b6b8631a2b8ed (diff)
downloadskyblock-api-b9053538aee604b62ae54538320f930c2c96e0aa.tar.gz
skyblock-api-b9053538aee604b62ae54538320f930c2c96e0aa.tar.bz2
skyblock-api-b9053538aee604b62ae54538320f930c2c96e0aa.zip
Add harp stats
Diffstat (limited to 'src/cleaners/skyblock/member.ts')
-rw-r--r--src/cleaners/skyblock/member.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts
index 161f5cc..99a4376 100644
--- a/src/cleaners/skyblock/member.ts
+++ b/src/cleaners/skyblock/member.ts
@@ -16,6 +16,7 @@ import { Included } from '../../hypixel.js'
import { CleanPlayer } from '../player.js'
import { CleanRank } from '../rank.js'
import { cleanPets, Pet, PetsData } from './pets.js'
+import { cleanHarp, HarpData } from './harp.js'
export interface CleanBasicMember {
uuid: string
@@ -39,6 +40,7 @@ export interface CleanMember extends CleanBasicMember {
collections: Collection[]
slayers: SlayerData
pets: PetsData
+ harp: HarpData
/** Whether the user left the coop */
left: boolean
}
@@ -90,6 +92,7 @@ export async function cleanSkyBlockProfileMemberResponse(member: typedHypixelApi
collections: cleanCollections(member),
slayers: cleanSlayers(member),
pets: await cleanPets(member),
+ harp: await cleanHarp(member),
left: (player.profiles?.find(profile => profile.uuid === profileId) === undefined) ?? false
}
@@ -113,6 +116,7 @@ export interface CleanMemberProfilePlayer extends CleanPlayer {
collections: Collection[]
slayers: SlayerData
pets: PetsData
+ harp: HarpData
}
export interface CleanMemberProfile {