Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
what (#15)
Browse files Browse the repository at this point in the history
* clear

* Rewrite Info

* Fix endpoint importing

* Rewrite types

* fix

* better exports

* Bump Skyhelper-Networth

* Fix endpoint loading

* fix
  • Loading branch information
Kathund authored Aug 12, 2024
1 parent 2c9f323 commit c9b578a
Show file tree
Hide file tree
Showing 34 changed files with 183 additions and 139 deletions.
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,14 @@
"url": "https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/issues"
},
"scripts": {
"lint:check": "npx eslint --cache src/",
"lint": "npx eslint --cache src/ --fix",
"prettier:check": "npx prettier --cache --check src/",
"prettier": "npx prettier --cache --write src/",
"lint:check": "npx eslint src/",
"lint": "npx eslint src/ --fix",
"prettier:check": "npx prettier --check src/",
"prettier": "npx prettier --write src/",
"build": "npx tsc"
},
"engines": {
"node": ">=20.16.0",
"pnpm": ">=9.7.0",
"npm": "forbidden, use pnpm instead",
"yarn": "forbidden, use pnpm instead",
"bun": "forbidden, use pnpm instead"
"node": ">=20.16.0"
},
"type": "module",
"packageManager": "[email protected]",
Expand All @@ -37,7 +33,7 @@
"node-cache": "^5.1.2",
"prismarine-nbt": "^2.5.0",
"rss-parser": "^3.13.0",
"skyhelper-networth": "^1.22.0"
"skyhelper-networth": "^1.23.0"
},
"license": "MIT",
"readme": "https://github.com/Hypixel-API-Reborn/hypixel-api-reborn?tab=readme-ov-file#hypixel-api--reborn",
Expand Down
91 changes: 48 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/API/getAchievements.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Achievements from '../structures/Static/Achievements';
import Endpoint from '../Private/Endpoint';
import Client from '../Client';

export default class getAchievements extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getAchievements';
}

async execute() {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getActiveHouses.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Endpoint from '../Private/Endpoint';
import House from '../structures/House';
import Client from '../Client';

export default class getActiveHouses extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getActiveHouses';
}

async execute() {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getBoosters.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Booster from '../structures/Boosters/Booster';
import Endpoint from '../Private/Endpoint';
import Client from '../Client';

export default class getBoosters extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getBoosters';
}

async execute() {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getChallenges.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Challenges from '../structures/Static/Challenges';
import Endpoint from '../Private/Endpoint';
import Client from '../Client';

export default class getChallenges extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getChallenges';
}

async execute() {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getGameCounts.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import GameCounts from '../structures/GameCounts';
import Endpoint from '../Private/Endpoint';
import Client from '../Client';

export default class getGameCounts extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getGameCounts';
}

async execute() {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getGuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import Endpoint from '../Private/Endpoint';
import toUuid from '../utils/toUuid';
import Errors from '../Errors';
import Client from '../Client';

export default class getGuild extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getGuild';
}

async execute(searchParameter: 'id' | 'name' | 'player', query: string) {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getGuildAchievements.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import GuildAchievements from '../structures/Static/GuildAchievements';
import Endpoint from '../Private/Endpoint';
import Client from '../Client';

export default class getGuildAchievements extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getGuildAchievements';
}

async execute() {
Expand Down
3 changes: 1 addition & 2 deletions src/API/getHouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import Endpoint from '../Private/Endpoint';
import House from '../structures/House';
import Errors from '../Errors';
import Client from '../Client';

export default class getHouse extends Endpoint {
readonly client: Client;
readonly name: string;
constructor(client: Client) {
super(client);
this.client = client;
this.name = 'getHouse';
}

async execute(query: string) {
Expand Down
Loading

0 comments on commit c9b578a

Please sign in to comment.