hypixel-api-reborn 11.3.0 → 11.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,5 +3,5 @@ module.exports = async function () {
|
|
|
3
3
|
// eslint-disable-next-line no-underscore-dangle
|
|
4
4
|
const res = await this._makeRequest('/skyblock/firesales');
|
|
5
5
|
if (res.raw) return res;
|
|
6
|
-
return res.sales.length ? res.sales.map((
|
|
6
|
+
return res.sales.length ? res.sales.map((sale) => new FireSale(sale)) : [];
|
|
7
7
|
};
|
|
@@ -113,6 +113,11 @@ class DuelsGamemode {
|
|
|
113
113
|
* @type {number}
|
|
114
114
|
*/
|
|
115
115
|
this.goldenApplesEatan = data[`${mode}_golden_apples_eaten`] || 0;
|
|
116
|
+
/**
|
|
117
|
+
* Goals (only shows up in bridge)
|
|
118
|
+
* @type {number}
|
|
119
|
+
*/
|
|
120
|
+
this.goals = data[`${mode}_goals`] || 0;
|
|
116
121
|
}
|
|
117
122
|
}
|
|
118
123
|
|
|
@@ -803,6 +808,18 @@ class DuelsBridge {
|
|
|
803
808
|
this['2v2v2v2'].goldenApplesEatan +
|
|
804
809
|
this['3v3v3v3'].goldenApplesEatan +
|
|
805
810
|
this.ctf.goldenApplesEatan;
|
|
811
|
+
/**
|
|
812
|
+
* Goals
|
|
813
|
+
* @type {number}
|
|
814
|
+
*/
|
|
815
|
+
this.goals =
|
|
816
|
+
this.solo.goals +
|
|
817
|
+
this.doubles.goals +
|
|
818
|
+
this.threes.goals +
|
|
819
|
+
this.fours.goals +
|
|
820
|
+
this['2v2v2v2'].goals +
|
|
821
|
+
this['3v3v3v3'].goals +
|
|
822
|
+
this.ctf.goals;
|
|
806
823
|
}
|
|
807
824
|
}
|
|
808
825
|
|
package/src/structures/Player.js
CHANGED
package/typings/index.d.ts
CHANGED
|
@@ -17,10 +17,8 @@ export type PLAYER_RANK =
|
|
|
17
17
|
| 'YouTube'
|
|
18
18
|
| 'Game Master'
|
|
19
19
|
| 'Admin'
|
|
20
|
-
| '
|
|
21
|
-
| '
|
|
22
|
-
| 'MOJANG'
|
|
23
|
-
| 'PIG+++';
|
|
20
|
+
| 'PIG+++'
|
|
21
|
+
| 'INNIT';
|
|
24
22
|
export type GAME_NAME =
|
|
25
23
|
| 'Quake Craft'
|
|
26
24
|
| 'Walls'
|
|
@@ -377,13 +375,13 @@ export interface methodOptions {
|
|
|
377
375
|
noCaching?: boolean;
|
|
378
376
|
}
|
|
379
377
|
export interface playerMethodOptions extends methodOptions {
|
|
380
|
-
raw?: boolean;
|
|
381
378
|
guild?: boolean;
|
|
382
379
|
recentGames?: boolean;
|
|
383
380
|
}
|
|
384
381
|
export interface skyblockMemberOptions extends methodOptions {
|
|
385
|
-
raw?: boolean;
|
|
386
382
|
fetchPlayer?: boolean;
|
|
383
|
+
getMuseum?: boolean;
|
|
384
|
+
getGarden?: boolean;
|
|
387
385
|
}
|
|
388
386
|
export interface auctionsOptions extends methodOptions {
|
|
389
387
|
noInfo?: boolean;
|
|
@@ -1125,172 +1123,208 @@ declare module 'hypixel-api-reborn' {
|
|
|
1125
1123
|
* @description Returns all cache entries
|
|
1126
1124
|
*/
|
|
1127
1125
|
readonly cache: Map<string, any>;
|
|
1126
|
+
/**
|
|
1127
|
+
* @description Retrieves information about Hypixel achievements.
|
|
1128
|
+
* @param {methodOptions} [options] - The method options.
|
|
1129
|
+
*/
|
|
1130
|
+
getAchievements(options?: methodOptions): Promise<Achievements>;
|
|
1131
|
+
/**
|
|
1132
|
+
* @description Parses the RSS feed from status.hypixel.net
|
|
1133
|
+
* @param {methodOptions} [options] - The method options.
|
|
1134
|
+
*/
|
|
1135
|
+
getAPIStatus(options?: methodOptions): Promise<APIStatus>;
|
|
1136
|
+
/**
|
|
1137
|
+
* @description Allows you to get all active boosters
|
|
1138
|
+
* @param {methodOptions} [options] - The method options.
|
|
1139
|
+
*/
|
|
1140
|
+
getBoosters(options?: methodOptions): Promise<Booster[]>;
|
|
1141
|
+
/**
|
|
1142
|
+
* @description Allows you to get information about hypixel challenges [NO KEY REQUIRED]
|
|
1143
|
+
* @param {methodOptions} [options] - The method options.
|
|
1144
|
+
*/
|
|
1145
|
+
getChallenges(options?: methodOptions): Promise<Challenges>;
|
|
1146
|
+
/**
|
|
1147
|
+
* @description Allows you to get player count along with the player count of each public game
|
|
1148
|
+
* @param {methodOptions} [options] - The method options.
|
|
1149
|
+
*/
|
|
1150
|
+
getGameCounts(options?: methodOptions): Promise<GameCounts>;
|
|
1151
|
+
/**
|
|
1152
|
+
* @description Allows you to get statistics of hypixel guild
|
|
1153
|
+
* @param {"id"|"name"|"player"} searchParameter - How you want to search
|
|
1154
|
+
* @param {string} query - guild name, player nickname or guild id
|
|
1155
|
+
* @param {methodOptions} [options] - The method options.
|
|
1156
|
+
*/
|
|
1157
|
+
getGuild(searchParameter: 'id' | 'name' | 'player', query: string, options?: methodOptions): Promise<Guild>;
|
|
1158
|
+
/**
|
|
1159
|
+
* @description Allows you to get information about hypixel guild achievements [NO KEY REQUIRED]
|
|
1160
|
+
* @param {methodOptions} [options] - The method options.
|
|
1161
|
+
*/
|
|
1162
|
+
getGuildAchievements(options?: methodOptions): Promise<GuildAchievements>;
|
|
1163
|
+
/**
|
|
1164
|
+
* @description Allows you to get leaderboards of each mini-game
|
|
1165
|
+
* @param {methodOptions} [options] - The method options.
|
|
1166
|
+
*/
|
|
1167
|
+
getLeaderboards(options?: methodOptions): Promise<{
|
|
1168
|
+
ARENA: Leaderboard[];
|
|
1169
|
+
COPS_AND_CRIMS: Leaderboard[];
|
|
1170
|
+
WARLORDS: Leaderboard[];
|
|
1171
|
+
BLITZ_SURVIVAL_GAMES: Leaderboard[];
|
|
1172
|
+
UHC: Leaderboard[];
|
|
1173
|
+
WALLS: Leaderboard[];
|
|
1174
|
+
PROTOTYPE: Leaderboard[];
|
|
1175
|
+
PAINTBALL: Leaderboard[];
|
|
1176
|
+
SKYWARS: Leaderboard[];
|
|
1177
|
+
MURDER_MYSTERY: Leaderboard[];
|
|
1178
|
+
SMASH_HEROES: Leaderboard[];
|
|
1179
|
+
DUELS: Leaderboard[];
|
|
1180
|
+
SPEED_UHC: Leaderboard[];
|
|
1181
|
+
TNTGAMES: Leaderboard[];
|
|
1182
|
+
BEDWARS: Leaderboard[];
|
|
1183
|
+
TURBO_KART_RACERS: Leaderboard[];
|
|
1184
|
+
BUILD_BATTLE: Leaderboard[];
|
|
1185
|
+
ARCADE: Leaderboard[];
|
|
1186
|
+
SKYCLASH: Leaderboard[];
|
|
1187
|
+
QUAKECRAFT: Leaderboard[];
|
|
1188
|
+
CRAZY_WALLS: Leaderboard[];
|
|
1189
|
+
MEGA_WALLS: Leaderboard[];
|
|
1190
|
+
VAMPIREZ: Leaderboard[];
|
|
1191
|
+
}>;
|
|
1128
1192
|
/**
|
|
1129
1193
|
* @description Allows you to get statistics of player
|
|
1130
|
-
* @param query - player nickname or uuid
|
|
1131
|
-
* @param options - player search options
|
|
1194
|
+
* @param {string} query - player nickname or uuid
|
|
1195
|
+
* @param {playerMethodOptions} [options] - player search options
|
|
1132
1196
|
*/
|
|
1133
1197
|
getPlayer(query: string, options?: playerMethodOptions): Promise<Player>;
|
|
1134
1198
|
/**
|
|
1135
|
-
* @description Allows you to get
|
|
1136
|
-
* @param
|
|
1137
|
-
* @param query - guild name, player nickname or guild id
|
|
1199
|
+
* @description Allows you to get information about hypixel quests [NO KEY REQUIRED]
|
|
1200
|
+
* @param {methodOptions} [options] - Options
|
|
1138
1201
|
*/
|
|
1139
|
-
|
|
1202
|
+
getQuests(options?: methodOptions): Promise<Quests>;
|
|
1140
1203
|
/**
|
|
1141
|
-
* @description Allows you to get
|
|
1204
|
+
* @description Allows you to get recent games of a player
|
|
1205
|
+
* @param {string} query - player nickname or uuid
|
|
1206
|
+
* @param {methodOptions} [options] - Options
|
|
1142
1207
|
*/
|
|
1143
|
-
|
|
1208
|
+
getRecentGames(query: string, options?: methodOptions): Promise<RecentGame[]>;
|
|
1144
1209
|
/**
|
|
1145
|
-
* @description
|
|
1210
|
+
* @description Parses information returned by hypixel upon a status request packet
|
|
1211
|
+
* @param {number} repeats Amount of times to ping hypixel, preferably between 1 and 10 times.
|
|
1146
1212
|
*/
|
|
1147
|
-
|
|
1213
|
+
getServerInfo(repeats?: number): Promise<ServerInfo>;
|
|
1148
1214
|
/**
|
|
1149
|
-
* @description Allows you to get
|
|
1150
|
-
* @param query - player nickname or uuid
|
|
1215
|
+
* @description Allows you to get player's network status
|
|
1216
|
+
* @param {string} query - player nickname or uuid
|
|
1217
|
+
* @param {methodOptions} [options] - Options
|
|
1151
1218
|
*/
|
|
1152
|
-
|
|
1219
|
+
getStatus(query: string, options?: methodOptions): Promise<Status>;
|
|
1153
1220
|
/**
|
|
1154
|
-
* @description Allows you to get
|
|
1155
|
-
* @param
|
|
1221
|
+
* @description Allows you to get statistics of watchdog anticheat
|
|
1222
|
+
* @param {methodOptions} [options] - Options
|
|
1156
1223
|
*/
|
|
1157
|
-
|
|
1224
|
+
getWatchdogStats(options?: methodOptions): Promise<WatchdogStats>;
|
|
1158
1225
|
/**
|
|
1159
|
-
* Allows you to get filtered skyblock auctions
|
|
1160
|
-
* Using auction ID will return an array of at most 1 element
|
|
1161
|
-
* @method
|
|
1226
|
+
* @description Allows you to get filtered skyblock auctions. Using auction ID will return an array of at most 1 element
|
|
1162
1227
|
* @name Client#getSkyblockAuction
|
|
1163
|
-
* @param type - Filter to use
|
|
1164
|
-
* @param query - uuid of profile, player, or auction. IGN can be used as well
|
|
1165
|
-
* @param includeItemBytes - include item bytes (optional)
|
|
1166
|
-
* @param options - Options
|
|
1228
|
+
* @param {'PROFILE' | 'PLAYER' | 'AUCTION'} type - Filter to use
|
|
1229
|
+
* @param {string} query - uuid of profile, player, or auction. IGN can be used as well
|
|
1230
|
+
* @param {boolean} includeItemBytes - include item bytes (optional)
|
|
1231
|
+
* @param {methodOptions} [options] - Options
|
|
1167
1232
|
*/
|
|
1168
1233
|
getSkyblockAuction(
|
|
1169
1234
|
type: 'PROFILE' | 'PLAYER' | 'AUCTION',
|
|
1170
1235
|
query: string,
|
|
1171
1236
|
includeItemBytes?: boolean,
|
|
1172
1237
|
options?: methodOptions
|
|
1173
|
-
): Promise<Auction[]>;
|
|
1174
|
-
|
|
1175
|
-
*
|
|
1176
|
-
* @param
|
|
1177
|
-
* @param
|
|
1238
|
+
): Promise<Auction[]>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Allows you to get skyblock auctions
|
|
1241
|
+
* @param {string|number|number[]} page - "*", a page number, or an array with the start and the end page number ( automatically sorted )
|
|
1242
|
+
* @param {auctionsOptions} [options={}] Options
|
|
1243
|
+
* @return {Promise<{info:AuctionInfo,auctions:Auction[]}>}
|
|
1178
1244
|
*/
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
options
|
|
1182
|
-
): Promise<{ info: AuctionInfo; auctions:
|
|
1245
|
+
getSkyblockAuctions(
|
|
1246
|
+
page: string | number | number[],
|
|
1247
|
+
options: auctionsOptions
|
|
1248
|
+
): Promise<{ info: AuctionInfo; auctions: Auction[] }>;
|
|
1183
1249
|
/**
|
|
1184
1250
|
* @description Allows you to get all auctions of player
|
|
1185
|
-
* @param query - player nickname or uuid
|
|
1186
|
-
* @param includeItemBytes - include item bytes (optional)
|
|
1251
|
+
* @param {string} query - player nickname or uuid
|
|
1252
|
+
* @param {boolean} includeItemBytes - include item bytes (optional)
|
|
1253
|
+
* @param {methodOptions} [options] - Options
|
|
1187
1254
|
*/
|
|
1188
1255
|
getSkyblockAuctionsByPlayer(query: string, includeItemBytes?: boolean, options?: methodOptions): Promise<Auction[]>;
|
|
1189
1256
|
/**
|
|
1190
1257
|
* @description Allows you to get list of products
|
|
1258
|
+
* @param {methodOptions} [options] - Options
|
|
1191
1259
|
*/
|
|
1192
1260
|
getSkyblockBazaar(options?: methodOptions): Promise<Product[]>;
|
|
1193
1261
|
/**
|
|
1194
1262
|
* @description Gets bingo data
|
|
1263
|
+
* @param {methodOptions} [options] - Options
|
|
1195
1264
|
*/
|
|
1196
1265
|
getSkyblockBingo(options?: methodOptions): Promise<BingoData>;
|
|
1197
1266
|
/**
|
|
1198
1267
|
* @description Gets bingo data of a player
|
|
1199
|
-
* @param query - UUID/IGN of player
|
|
1268
|
+
* @param {string} query - UUID/IGN of player
|
|
1269
|
+
* @param {methodOptions} [options] - Options
|
|
1200
1270
|
*/
|
|
1201
1271
|
getSkyblockBingoByPlayer(query: string, options?: playerBingoOptions): Promise<PlayerBingo>;
|
|
1272
|
+
/**
|
|
1273
|
+
* @description Allows you to get list of active skyblock firesales
|
|
1274
|
+
* @param {methodOptions} [options] - Options
|
|
1275
|
+
*/
|
|
1276
|
+
getSkyblockFireSales(options?: methodOptions): Promise<FireSale[]>;
|
|
1277
|
+
/**
|
|
1278
|
+
* @description Allows you to get a profiles skyblock garden
|
|
1279
|
+
* @param {methodOptions} [options] - Options
|
|
1280
|
+
*/
|
|
1281
|
+
getSkyblockGarden(profileId: string, options?: methodOptions);
|
|
1202
1282
|
/**
|
|
1203
1283
|
* @description Gets data of skyblock government
|
|
1284
|
+
* @param {methodOptions} [options] - Options
|
|
1204
1285
|
*/
|
|
1205
1286
|
getSkyblockGovernment(options?: methodOptions): Promise<GovernmentData>;
|
|
1206
1287
|
/**
|
|
1207
|
-
* @description
|
|
1288
|
+
* @description Allows you to get a player's skyblock member data from all their profiles
|
|
1289
|
+
* @param query - player nickname or uuid
|
|
1290
|
+
* @param {methodOptions} [options] - Options
|
|
1208
1291
|
*/
|
|
1209
|
-
|
|
1292
|
+
getSkyblockMember(query: string, options?: skyblockMemberOptions): Promise<Map<string, SkyblockMember>>;
|
|
1293
|
+
/**
|
|
1294
|
+
* @description Allows you to get statistics of player
|
|
1295
|
+
* @param {string} query - player nickname or uuid
|
|
1296
|
+
* @param {string} profileId - profile id
|
|
1297
|
+
* @param {methodOptions} [options] - Options
|
|
1298
|
+
*/
|
|
1299
|
+
getSkyblockMuseum(query: string, profileId: string, options?: methodOptions);
|
|
1210
1300
|
/**
|
|
1211
1301
|
* @description Allows you to get skyblock news
|
|
1302
|
+
* @param {methodOptions} [options] - Options
|
|
1212
1303
|
*/
|
|
1213
1304
|
getSkyblockNews(options?: methodOptions): Promise<SkyblockNews>;
|
|
1305
|
+
/**
|
|
1306
|
+
* @description Allows you to get a player's skyblock profiles
|
|
1307
|
+
* @param query - player nickname or uuid
|
|
1308
|
+
* @param {methodOptions} [options] - Options
|
|
1309
|
+
*/
|
|
1310
|
+
getSkyblockProfiles(query: string, options?: skyblockMemberOptions): Promise<SkyblockProfile[]>;
|
|
1214
1311
|
/**
|
|
1215
1312
|
* @description Get a array of active houses
|
|
1313
|
+
* @param {methodOptions} [options] - Options
|
|
1216
1314
|
*/
|
|
1217
1315
|
getActiveHouses(options?: methodOptions): Promise<House[]>;
|
|
1218
1316
|
/**
|
|
1219
1317
|
* @description Get a array of houses for a user
|
|
1220
1318
|
* @param query - UUID / IGN of player
|
|
1319
|
+
* @param {methodOptions} [options] - Options
|
|
1221
1320
|
*/
|
|
1222
1321
|
getPlayerHouses(query: string, options?: methodOptions): Promise<House[]>;
|
|
1223
1322
|
/**
|
|
1224
1323
|
* @description Get a house
|
|
1225
1324
|
* @param query - house uuid
|
|
1325
|
+
* @param {methodOptions} [options] - Options
|
|
1226
1326
|
*/
|
|
1227
1327
|
getHouse(query: string, options?: methodOptions): Promise<House>;
|
|
1228
|
-
/**
|
|
1229
|
-
* @description Allows you to get player's network status
|
|
1230
|
-
* @param query - player nickname or uuid
|
|
1231
|
-
*/
|
|
1232
|
-
getStatus(query: string, options?: methodOptions): Promise<Status>;
|
|
1233
|
-
/**
|
|
1234
|
-
* @description Allows you to get leaderboards of each mini-game
|
|
1235
|
-
*/
|
|
1236
|
-
getLeaderboards(options?: methodOptions): Promise<{
|
|
1237
|
-
ARENA: Leaderboard[];
|
|
1238
|
-
COPS_AND_CRIMS: Leaderboard[];
|
|
1239
|
-
WARLORDS: Leaderboard[];
|
|
1240
|
-
BLITZ_SURVIVAL_GAMES: Leaderboard[];
|
|
1241
|
-
UHC: Leaderboard[];
|
|
1242
|
-
WALLS: Leaderboard[];
|
|
1243
|
-
PROTOTYPE: Leaderboard[];
|
|
1244
|
-
PAINTBALL: Leaderboard[];
|
|
1245
|
-
SKYWARS: Leaderboard[];
|
|
1246
|
-
MURDER_MYSTERY: Leaderboard[];
|
|
1247
|
-
SMASH_HEROES: Leaderboard[];
|
|
1248
|
-
DUELS: Leaderboard[];
|
|
1249
|
-
SPEED_UHC: Leaderboard[];
|
|
1250
|
-
TNTGAMES: Leaderboard[];
|
|
1251
|
-
BEDWARS: Leaderboard[];
|
|
1252
|
-
TURBO_KART_RACERS: Leaderboard[];
|
|
1253
|
-
BUILD_BATTLE: Leaderboard[];
|
|
1254
|
-
ARCADE: Leaderboard[];
|
|
1255
|
-
SKYCLASH: Leaderboard[];
|
|
1256
|
-
QUAKECRAFT: Leaderboard[];
|
|
1257
|
-
CRAZY_WALLS: Leaderboard[];
|
|
1258
|
-
MEGA_WALLS: Leaderboard[];
|
|
1259
|
-
VAMPIREZ: Leaderboard[];
|
|
1260
|
-
}>;
|
|
1261
|
-
/**
|
|
1262
|
-
* @description Allows you to get recent games of a player
|
|
1263
|
-
*/
|
|
1264
|
-
getRecentGames(query: string, options?: methodOptions): Promise<RecentGame[]>;
|
|
1265
|
-
/**
|
|
1266
|
-
* @description Allows you to get player count along with the player count of each public game
|
|
1267
|
-
*/
|
|
1268
|
-
getGameCounts(options?: methodOptions): Promise<GameCounts>;
|
|
1269
|
-
/**
|
|
1270
|
-
* @param repeats Amount of times to ping hypixel, preferably between 1 and 10 times.
|
|
1271
|
-
* @description Parses information returned by hypixel upon a status request packet
|
|
1272
|
-
*/
|
|
1273
|
-
getServerInfo(repeats?: number): Promise<ServerInfo>;
|
|
1274
|
-
/**
|
|
1275
|
-
* @description Parses the RSS feed from status.hypixel.net
|
|
1276
|
-
*/
|
|
1277
|
-
getAPIStatus(): Promise<APIStatus>;
|
|
1278
|
-
/**
|
|
1279
|
-
* @description Allows you to get information about hypixel challenges [NO KEY REQUIRED]
|
|
1280
|
-
*/
|
|
1281
|
-
getChallenges(options?: methodOptions): Promise<Challenges>;
|
|
1282
|
-
/**
|
|
1283
|
-
* @description Allows you to get information about hypixel quests [NO KEY REQUIRED]
|
|
1284
|
-
*/
|
|
1285
|
-
getQuests(options?: methodOptions): Promise<Quests>;
|
|
1286
|
-
/**
|
|
1287
|
-
* Allows you to get information about hypixel achievements [NO KEY REQUIRED]
|
|
1288
|
-
*/
|
|
1289
|
-
getAchievements(options?: methodOptions): Promise<Achievements>;
|
|
1290
|
-
/**
|
|
1291
|
-
* @description Allows you to get information about hypixel guild achievements [NO KEY REQUIRED]
|
|
1292
|
-
*/
|
|
1293
|
-
getGuildAchievements(options?: methodOptions): Promise<GuildAchievements>;
|
|
1294
1328
|
/**
|
|
1295
1329
|
* @param amount - Amount of cache entries to delete
|
|
1296
1330
|
* @description Allows you to clear cache
|
|
@@ -3816,6 +3850,7 @@ declare module 'hypixel-api-reborn' {
|
|
|
3816
3850
|
blocksPlaced: number;
|
|
3817
3851
|
healthRegenerated: number;
|
|
3818
3852
|
goldenApplesEatan: number;
|
|
3853
|
+
goals: number;
|
|
3819
3854
|
}
|
|
3820
3855
|
class DuelsUHC {
|
|
3821
3856
|
constructor(data: Record<string, unknown>, mode: string, title: string);
|
|
@@ -3943,6 +3978,7 @@ declare module 'hypixel-api-reborn' {
|
|
|
3943
3978
|
blocksPlaced: number;
|
|
3944
3979
|
healthRegenerated: number;
|
|
3945
3980
|
goldenApplesEatan: number;
|
|
3981
|
+
goals: number;
|
|
3946
3982
|
}
|
|
3947
3983
|
class Duels {
|
|
3948
3984
|
constructor(data: Record<string, unknown>);
|