Skip to content

Commit

Permalink
Remove Dead uuidCache code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Aug 15, 2024
1 parent a9be1be commit 4b2e9e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
2 changes: 2 additions & 0 deletions src/API/getPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export default class getPlayer extends Endpoint {
const res = await this.client.requests.request(`/player?uuid=${query}`, options);
if (res.raw) return res;
if (query && !res.player) throw new Error(this.client.errors.PLAYER_HAS_NEVER_LOGGED);

Check failure on line 18 in src/API/getPlayer.ts

View workflow job for this annotation

GitHub Actions / build

Property 'PLAYER_HAS_NEVER_LOGGED' does not exist on type 'Errors'.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
return new Player(res.player, options?.getGuild ? await this.client.getGuild('player', query) : undefined);
}
}
4 changes: 4 additions & 0 deletions src/API/getSkyblockMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export default class getSkyblockMember extends Endpoint {
new SkyblockMember({
uuid: query,
profileId: profile.profile_id,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
garden: options?.garden ? await this.client.getSkyblockGarden(profile.profile_id) : null,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
museum: options?.garden ? await this.client.getSkyblockMuseum(query, profile.profile_id) : null,
profileName: profile.cute_name,
gameMode: profile.game_mode || null,
Expand Down
32 changes: 0 additions & 32 deletions src/Private/uuidCache.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export * from './Private/CacheHandler';
export * from './Private/Updater';
export * from './Private/Endpoint';
export * from './Private/Requests';
export * from './Private/uuidCache';

export * from './API/getAchievements';
export * from './API/getActiveHouses';
Expand Down

0 comments on commit 4b2e9e4

Please sign in to comment.