aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cleaners/skyblock/member.ts2
-rw-r--r--src/hypixelCached.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts
index 7c3ccd6..3430eac 100644
--- a/src/cleaners/skyblock/member.ts
+++ b/src/cleaners/skyblock/member.ts
@@ -14,7 +14,6 @@ import * as constants from '../../constants.js'
import { Included } from '../../hypixel.js'
import { CleanPlayer } from '../player.js'
import { CleanRank } from '../rank.js'
-import { Bank } from './bank.js'
export interface CleanBasicMember {
uuid: string
@@ -22,6 +21,7 @@ export interface CleanBasicMember {
lastSave: number
firstJoin: number
rank: CleanRank
+ left?: boolean
}
export interface CleanMember extends CleanBasicMember {
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index f9bd53e..bc34ef0 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -10,6 +10,7 @@ import * as mojang from './mojang.js'
import NodeCache from 'node-cache'
import { debug } from './index.js'
import LRUCache from 'lru-cache'
+import { CleanBasicMember } from './cleaners/skyblock/member.js'
// cache usernames for 30 minutes
@@ -233,7 +234,7 @@ export async function fetchSkyblockProfiles(playerUuid: string): Promise<CleanPr
const basicProfile: CleanProfile = {
name: profile.name,
uuid: profile.uuid,
- members: profile.members?.map(m => {
+ members: profile.members?.map((m): CleanBasicMember => {
return {
uuid: m.uuid,
username: m.username,