diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-14 14:07:10 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-14 14:07:10 -0600 |
commit | eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495 (patch) | |
tree | 39a5e242c360f735e28889da22187b9471ed8dc1 /src/cleaners/skyblock/member.ts | |
parent | a12f0eaf3349160282bdc9f48cf9f253a154e500 (diff) | |
download | skyblock-api-eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495.tar.gz skyblock-api-eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495.tar.bz2 skyblock-api-eedd4ff7a3f2816c8e0d3f037c7a1acbb5988495.zip |
add collections
Diffstat (limited to 'src/cleaners/skyblock/member.ts')
-rw-r--r-- | src/cleaners/skyblock/member.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts index e7e6250..f0d2cec 100644 --- a/src/cleaners/skyblock/member.ts +++ b/src/cleaners/skyblock/member.ts @@ -1,5 +1,5 @@ import { CleanProfileStats, cleanProfileStats } from './stats' -import { cleanInventories, Inventories, INVENTORIES } from './inventory' +import { cleanInventories, Inventories } from './inventory' import { cleanFairySouls, FairySouls } from './fairysouls' import { cleanObjectives, Objective } from './objectives' import { CleanMinion, cleanMinions } from './minions' @@ -10,6 +10,7 @@ import { Included } from '../../hypixel' import { CleanPlayer } from '../player' import { Bank } from './bank' import { cleanVisitedZones, Zone } from './zones' +import { cleanCollections, Collection } from './collections' export interface CleanBasicMember { uuid: string @@ -27,6 +28,7 @@ export interface CleanMember extends CleanBasicMember { objectives: Objective[] skills: Skill[] visited_zones: Zone[] + collections: Collection[] } export async function cleanSkyBlockProfileMemberResponseBasic(member, included: Included[] = null): Promise<CleanBasicMember> { @@ -56,7 +58,8 @@ export async function cleanSkyBlockProfileMemberResponse(member, included: Inclu inventories: inventoriesIncluded ? await cleanInventories(member) : undefined, objectives: cleanObjectives(member), skills: cleanSkills(member), - visited_zones: cleanVisitedZones(member) + visited_zones: cleanVisitedZones(member), + collections: cleanCollections(member) } } |