diff options
author | mat <github@matdoes.dev> | 2022-04-09 19:30:59 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-04-09 19:30:59 -0500 |
commit | 58e2fa480e127c30a04dc81256f462b7ad206eb9 (patch) | |
tree | 31fa318182aa25bd22c5afc8dc4a2f19086e024e /src/cleaners/skyblock/profile.ts | |
parent | 44510a2390270c7aeb8ad7ade72cd03c56ad5a2d (diff) | |
download | skyblock-api-58e2fa480e127c30a04dc81256f462b7ad206eb9.tar.gz skyblock-api-58e2fa480e127c30a04dc81256f462b7ad206eb9.tar.bz2 skyblock-api-58e2fa480e127c30a04dc81256f462b7ad206eb9.zip |
add special profile modes
Diffstat (limited to 'src/cleaners/skyblock/profile.ts')
-rw-r--r-- | src/cleaners/skyblock/profile.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/profile.ts b/src/cleaners/skyblock/profile.ts index 04d848a..48daa24 100644 --- a/src/cleaners/skyblock/profile.ts +++ b/src/cleaners/skyblock/profile.ts @@ -4,6 +4,7 @@ import typedHypixelApi from 'typed-hypixel-api' import * as constants from '../../constants.js' import { ApiOptions } from '../../hypixel.js' import { Bank, cleanBank } from './bank.js' +import { cleanGameMode, GameMode } from './gameMode.js' export interface CleanProfile extends CleanBasicProfile { members?: CleanBasicMember[] @@ -15,6 +16,7 @@ export interface CleanFullProfile extends CleanProfile { minions: CleanMinion[] minionCount: number maxUniqueMinions: number + mode: GameMode } export interface CleanFullProfileBasicMembers extends CleanProfile { @@ -23,6 +25,7 @@ export interface CleanFullProfileBasicMembers extends CleanProfile { minions: CleanMinion[] minionCount: number maxUniqueMinions: number + mode: GameMode } /** Return a `CleanProfile` instead of a `CleanFullProfile`, useful when we need to get members but don't want to waste much ram */ @@ -107,6 +110,7 @@ export async function cleanSkyblockProfileResponse<O extends ApiOptions>( minions: minions, minionCount: uniqueMinions, maxUniqueMinions: maxUniqueMinions ?? 0, + mode: cleanGameMode(data) } return cleanFullProfile } |