diff options
author | mat <github@matdoes.dev> | 2022-05-15 14:38:18 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-15 14:38:18 -0500 |
commit | b3010e565fe7e984f5a913e8a4167a3cb6810090 (patch) | |
tree | d6bb1aa9c09c3f999de38ba1d223a19f1c844a04 /src/cleaners/skyblock/member.ts | |
parent | aa42b7d98cbc7707693e564463f3084b282c700c (diff) | |
download | skyblock-api-b3010e565fe7e984f5a913e8a4167a3cb6810090.tar.gz skyblock-api-b3010e565fe7e984f5a913e8a4167a3cb6810090.tar.bz2 skyblock-api-b3010e565fe7e984f5a913e8a4167a3cb6810090.zip |
add accessory bag upgrades
Diffstat (limited to 'src/cleaners/skyblock/member.ts')
-rw-r--r-- | src/cleaners/skyblock/member.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts index 6b2f452..f2526d2 100644 --- a/src/cleaners/skyblock/member.ts +++ b/src/cleaners/skyblock/member.ts @@ -19,6 +19,7 @@ import * as constants from '../../constants.js' import { Included } from '../../hypixel.js' import { CleanPlayer } from '../player.js' import { CleanRank } from '../rank.js' +import { AccessoryBagUpgrades, cleanAccessoryBagUpgrades } from './accessoryBagUpgrades.js' export interface CleanBasicMember { uuid: string @@ -45,6 +46,7 @@ export interface CleanMember extends CleanBasicMember { harp: HarpData coopInvitation: CoopInvitation | null farmingContests: FarmingContests + accessoryBagUpgrades: AccessoryBagUpgrades /** Whether the user left the coop */ left: boolean } @@ -110,6 +112,7 @@ export async function cleanSkyBlockProfileMemberResponse(member: typedHypixelApi harp: await harpPromise, coopInvitation: await coopInvitationPromise, farmingContests: await farmingContestsPromise, + accessoryBagUpgrades: cleanAccessoryBagUpgrades(member), left: (player.profiles?.find(profile => profile.uuid === profileId) === undefined) ?? false } @@ -136,6 +139,7 @@ export interface CleanMemberProfilePlayer extends CleanPlayer { harp: HarpData coopInvitation: CoopInvitation | null farmingContests: FarmingContests + accessoryBagUpgrades: AccessoryBagUpgrades left: boolean } |