Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.

Commit d35707d

Browse files
committed
Banking is sometimes {}
1 parent f88feea commit d35707d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typed-hypixel-api",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"main": "build/index.js",
55
"types": "build/index.d.js",
66
"repository": "https://github.com/skyblockstats/typed-hypixel-api.git",

src/responses/skyblock/_profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ export interface SkyBlockProfile {
3535
members: Record<string, SkyBlockProfileMember>
3636
community_upgrades?: SkyBlockCommunityUpgrades
3737
last_save?: string
38-
banking?: SkyBlockBanking
38+
banking?: SkyBlockBanking | {}
3939
game_mode?: 'bingo' | 'island' | 'ironman'
4040
}

test/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ const startTime = Date.now();
5050
uuid: '974b2a9e0d6d41819dd18a05fb228965',
5151
key: process.env.API_KEY
5252
}, true))
53+
await testData('SkyBlockProfilesResponse', await request('skyblock/profiles', {
54+
uuid: 'ac01147ed01a47d1b5777b31ccf5e616',
55+
key: process.env.API_KEY
56+
}, true))
5357

5458
await testData('SkyBlockProfileResponse', await request('skyblock/profile', {
5559
profile: '64722047f9b34e69b67b76a62351eb05',

0 commit comments

Comments
 (0)