hypixel-api-reborn 11.3.0 → 11.3.1
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;
|
|
@@ -1126,112 +1124,45 @@ declare module 'hypixel-api-reborn' {
|
|
|
1126
1124
|
*/
|
|
1127
1125
|
readonly cache: Map<string, any>;
|
|
1128
1126
|
/**
|
|
1129
|
-
* @description
|
|
1130
|
-
* @param
|
|
1131
|
-
* @param options - player search options
|
|
1127
|
+
* @description Retrieves information about Hypixel achievements.
|
|
1128
|
+
* @param {methodOptions} [options] - The method options.
|
|
1132
1129
|
*/
|
|
1133
|
-
|
|
1130
|
+
getAchievements(options?: methodOptions): Promise<Achievements>;
|
|
1134
1131
|
/**
|
|
1135
|
-
* @description
|
|
1136
|
-
* @param
|
|
1137
|
-
* @param query - guild name, player nickname or guild id
|
|
1132
|
+
* @description Parses the RSS feed from status.hypixel.net
|
|
1133
|
+
* @param {methodOptions} [options] - The method options.
|
|
1138
1134
|
*/
|
|
1139
|
-
|
|
1140
|
-
/**
|
|
1141
|
-
* @description Allows you to get statistics of watchdog anticheat
|
|
1142
|
-
*/
|
|
1143
|
-
getWatchdogStats(options?: methodOptions): Promise<WatchdogStats>;
|
|
1135
|
+
getAPIStatus(options?: methodOptions): Promise<APIStatus>;
|
|
1144
1136
|
/**
|
|
1145
1137
|
* @description Allows you to get all active boosters
|
|
1138
|
+
* @param {methodOptions} [options] - The method options.
|
|
1146
1139
|
*/
|
|
1147
1140
|
getBoosters(options?: methodOptions): Promise<Booster[]>;
|
|
1148
1141
|
/**
|
|
1149
|
-
* @description Allows you to get
|
|
1150
|
-
* @param
|
|
1151
|
-
*/
|
|
1152
|
-
getSkyblockProfiles(query: string, options?: skyblockMemberOptions): Promise<SkyblockProfile[]>;
|
|
1153
|
-
/**
|
|
1154
|
-
* @description Allows you to get a player's skyblock member data from all their profiles
|
|
1155
|
-
* @param query - player nickname or uuid
|
|
1156
|
-
*/
|
|
1157
|
-
getSkyblockMember(query: string, options?: skyblockMemberOptions): Promise<Map<string, SkyblockMember>>;
|
|
1158
|
-
/**
|
|
1159
|
-
* Allows you to get filtered skyblock auctions
|
|
1160
|
-
* Using auction ID will return an array of at most 1 element
|
|
1161
|
-
* @method
|
|
1162
|
-
* @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
|
|
1167
|
-
*/
|
|
1168
|
-
getSkyblockAuction(
|
|
1169
|
-
type: 'PROFILE' | 'PLAYER' | 'AUCTION',
|
|
1170
|
-
query: string,
|
|
1171
|
-
includeItemBytes?: boolean,
|
|
1172
|
-
options?: methodOptions
|
|
1173
|
-
): Promise<Auction[]>; /**
|
|
1174
|
-
* @description Allows you to get all auctions of player
|
|
1175
|
-
* @deprecated Use Client#getSkyblockAuction
|
|
1176
|
-
* @param query - player nickname or uuid
|
|
1177
|
-
* @param includeItemBytes - include item bytes (optional)
|
|
1178
|
-
*/
|
|
1179
|
-
getEndedSkyblockAuctions(
|
|
1180
|
-
includeItemBytes?: boolean,
|
|
1181
|
-
options?: methodOptions
|
|
1182
|
-
): Promise<{ info: AuctionInfo; auctions: PartialAuction[] }>;
|
|
1183
|
-
/**
|
|
1184
|
-
* @description Allows you to get all auctions of player
|
|
1185
|
-
* @param query - player nickname or uuid
|
|
1186
|
-
* @param includeItemBytes - include item bytes (optional)
|
|
1187
|
-
*/
|
|
1188
|
-
getSkyblockAuctionsByPlayer(query: string, includeItemBytes?: boolean, options?: methodOptions): Promise<Auction[]>;
|
|
1189
|
-
/**
|
|
1190
|
-
* @description Allows you to get list of products
|
|
1191
|
-
*/
|
|
1192
|
-
getSkyblockBazaar(options?: methodOptions): Promise<Product[]>;
|
|
1193
|
-
/**
|
|
1194
|
-
* @description Gets bingo data
|
|
1195
|
-
*/
|
|
1196
|
-
getSkyblockBingo(options?: methodOptions): Promise<BingoData>;
|
|
1197
|
-
/**
|
|
1198
|
-
* @description Gets bingo data of a player
|
|
1199
|
-
* @param query - UUID/IGN of player
|
|
1200
|
-
*/
|
|
1201
|
-
getSkyblockBingoByPlayer(query: string, options?: playerBingoOptions): Promise<PlayerBingo>;
|
|
1202
|
-
/**
|
|
1203
|
-
* @description Gets data of skyblock government
|
|
1204
|
-
*/
|
|
1205
|
-
getSkyblockGovernment(options?: methodOptions): Promise<GovernmentData>;
|
|
1206
|
-
/**
|
|
1207
|
-
* @description Gets data of skyblock government
|
|
1208
|
-
*/
|
|
1209
|
-
getSkyblockGovernment(options?: methodOptions): Promise<FireSale[]>;
|
|
1210
|
-
/**
|
|
1211
|
-
* @description Allows you to get skyblock news
|
|
1212
|
-
*/
|
|
1213
|
-
getSkyblockNews(options?: methodOptions): Promise<SkyblockNews>;
|
|
1214
|
-
/**
|
|
1215
|
-
* @description Get a array of active houses
|
|
1142
|
+
* @description Allows you to get information about hypixel challenges [NO KEY REQUIRED]
|
|
1143
|
+
* @param {methodOptions} [options] - The method options.
|
|
1216
1144
|
*/
|
|
1217
|
-
|
|
1145
|
+
getChallenges(options?: methodOptions): Promise<Challenges>;
|
|
1218
1146
|
/**
|
|
1219
|
-
* @description
|
|
1220
|
-
* @param
|
|
1147
|
+
* @description Allows you to get player count along with the player count of each public game
|
|
1148
|
+
* @param {methodOptions} [options] - The method options.
|
|
1221
1149
|
*/
|
|
1222
|
-
|
|
1150
|
+
getGameCounts(options?: methodOptions): Promise<GameCounts>;
|
|
1223
1151
|
/**
|
|
1224
|
-
* @description
|
|
1225
|
-
* @param
|
|
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.
|
|
1226
1156
|
*/
|
|
1227
|
-
|
|
1157
|
+
getGuild(searchParameter: 'id' | 'name' | 'player', query: string, options?: methodOptions): Promise<Guild>;
|
|
1228
1158
|
/**
|
|
1229
|
-
* @description Allows you to get
|
|
1230
|
-
* @param
|
|
1159
|
+
* @description Allows you to get information about hypixel guild achievements [NO KEY REQUIRED]
|
|
1160
|
+
* @param {methodOptions} [options] - The method options.
|
|
1231
1161
|
*/
|
|
1232
|
-
|
|
1162
|
+
getGuildAchievements(options?: methodOptions): Promise<GuildAchievements>;
|
|
1233
1163
|
/**
|
|
1234
1164
|
* @description Allows you to get leaderboards of each mini-game
|
|
1165
|
+
* @param {methodOptions} [options] - The method options.
|
|
1235
1166
|
*/
|
|
1236
1167
|
getLeaderboards(options?: methodOptions): Promise<{
|
|
1237
1168
|
ARENA: Leaderboard[];
|
|
@@ -1259,38 +1190,131 @@ declare module 'hypixel-api-reborn' {
|
|
|
1259
1190
|
VAMPIREZ: Leaderboard[];
|
|
1260
1191
|
}>;
|
|
1261
1192
|
/**
|
|
1262
|
-
* @description Allows you to get
|
|
1193
|
+
* @description Allows you to get statistics of player
|
|
1194
|
+
* @param {string} query - player nickname or uuid
|
|
1195
|
+
* @param {playerMethodOptions} [options] - player search options
|
|
1263
1196
|
*/
|
|
1264
|
-
|
|
1197
|
+
getPlayer(query: string, options?: playerMethodOptions): Promise<Player>;
|
|
1265
1198
|
/**
|
|
1266
|
-
* @description Allows you to get
|
|
1199
|
+
* @description Allows you to get information about hypixel quests [NO KEY REQUIRED]
|
|
1200
|
+
* @param {methodOptions} [options] - Options
|
|
1267
1201
|
*/
|
|
1268
|
-
|
|
1202
|
+
getQuests(options?: methodOptions): Promise<Quests>;
|
|
1203
|
+
/**
|
|
1204
|
+
* @description Allows you to get recent games of a player
|
|
1205
|
+
* @param {string} query - player nickname or uuid
|
|
1206
|
+
* @param {methodOptions} [options] - Options
|
|
1207
|
+
*/
|
|
1208
|
+
getRecentGames(query: string, options?: methodOptions): Promise<RecentGame[]>;
|
|
1269
1209
|
/**
|
|
1270
|
-
* @param repeats Amount of times to ping hypixel, preferably between 1 and 10 times.
|
|
1271
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.
|
|
1272
1212
|
*/
|
|
1273
1213
|
getServerInfo(repeats?: number): Promise<ServerInfo>;
|
|
1274
1214
|
/**
|
|
1275
|
-
* @description
|
|
1215
|
+
* @description Allows you to get player's network status
|
|
1216
|
+
* @param {string} query - player nickname or uuid
|
|
1217
|
+
* @param {methodOptions} [options] - Options
|
|
1276
1218
|
*/
|
|
1277
|
-
|
|
1219
|
+
getStatus(query: string, options?: methodOptions): Promise<Status>;
|
|
1278
1220
|
/**
|
|
1279
|
-
* @description Allows you to get
|
|
1221
|
+
* @description Allows you to get statistics of watchdog anticheat
|
|
1222
|
+
* @param {methodOptions} [options] - Options
|
|
1280
1223
|
*/
|
|
1281
|
-
|
|
1224
|
+
getWatchdogStats(options?: methodOptions): Promise<WatchdogStats>;
|
|
1282
1225
|
/**
|
|
1283
|
-
* @description Allows you to get
|
|
1226
|
+
* @description Allows you to get filtered skyblock auctions. Using auction ID will return an array of at most 1 element
|
|
1227
|
+
* @name Client#getSkyblockAuction
|
|
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
|
|
1284
1232
|
*/
|
|
1285
|
-
|
|
1233
|
+
getSkyblockAuction(
|
|
1234
|
+
type: 'PROFILE' | 'PLAYER' | 'AUCTION',
|
|
1235
|
+
query: string,
|
|
1236
|
+
includeItemBytes?: boolean,
|
|
1237
|
+
options?: methodOptions
|
|
1238
|
+
): Promise<Auction[]>;
|
|
1286
1239
|
/**
|
|
1287
|
-
* Allows you to get
|
|
1240
|
+
* @description Allows you to get all auctions of player
|
|
1241
|
+
* @param {string} query - player nickname or uuid
|
|
1242
|
+
* @param {boolean} includeItemBytes - include item bytes (optional)
|
|
1243
|
+
* @param {methodOptions} [options] - Options
|
|
1288
1244
|
*/
|
|
1289
|
-
|
|
1245
|
+
getSkyblockAuctionsByPlayer(query: string, includeItemBytes?: boolean, options?: methodOptions): Promise<Auction[]>;
|
|
1290
1246
|
/**
|
|
1291
|
-
* @description Allows you to get
|
|
1247
|
+
* @description Allows you to get list of products
|
|
1248
|
+
* @param {methodOptions} [options] - Options
|
|
1292
1249
|
*/
|
|
1293
|
-
|
|
1250
|
+
getSkyblockBazaar(options?: methodOptions): Promise<Product[]>;
|
|
1251
|
+
/**
|
|
1252
|
+
* @description Gets bingo data
|
|
1253
|
+
* @param {methodOptions} [options] - Options
|
|
1254
|
+
*/
|
|
1255
|
+
getSkyblockBingo(options?: methodOptions): Promise<BingoData>;
|
|
1256
|
+
/**
|
|
1257
|
+
* @description Gets bingo data of a player
|
|
1258
|
+
* @param {string} query - UUID/IGN of player
|
|
1259
|
+
* @param {methodOptions} [options] - Options
|
|
1260
|
+
*/
|
|
1261
|
+
getSkyblockBingoByPlayer(query: string, options?: playerBingoOptions): Promise<PlayerBingo>;
|
|
1262
|
+
/**
|
|
1263
|
+
* @description Allows you to get list of active skyblock firesales
|
|
1264
|
+
* @param {methodOptions} [options] - Options
|
|
1265
|
+
*/
|
|
1266
|
+
getSkyblockFireSales(options?: methodOptions): Promise<FireSale[]>;
|
|
1267
|
+
/**
|
|
1268
|
+
* @description Allows you to get a profiles skyblock garden
|
|
1269
|
+
* @param {methodOptions} [options] - Options
|
|
1270
|
+
*/
|
|
1271
|
+
getSkyblockGarden(profileId: string, options?: methodOptions);
|
|
1272
|
+
/**
|
|
1273
|
+
* @description Gets data of skyblock government
|
|
1274
|
+
* @param {methodOptions} [options] - Options
|
|
1275
|
+
*/
|
|
1276
|
+
getSkyblockGovernment(options?: methodOptions): Promise<GovernmentData>;
|
|
1277
|
+
/**
|
|
1278
|
+
* @description Allows you to get a player's skyblock member data from all their profiles
|
|
1279
|
+
* @param query - player nickname or uuid
|
|
1280
|
+
* @param {methodOptions} [options] - Options
|
|
1281
|
+
*/
|
|
1282
|
+
getSkyblockMember(query: string, options?: skyblockMemberOptions): Promise<Map<string, SkyblockMember>>;
|
|
1283
|
+
/**
|
|
1284
|
+
* @description Allows you to get statistics of player
|
|
1285
|
+
* @param {string} query - player nickname or uuid
|
|
1286
|
+
* @param {string} profileId - profile id
|
|
1287
|
+
* @param {methodOptions} [options] - Options
|
|
1288
|
+
*/
|
|
1289
|
+
getSkyblockMuseum(query: string, profileId: string, options?: methodOptions);
|
|
1290
|
+
/**
|
|
1291
|
+
* @description Allows you to get skyblock news
|
|
1292
|
+
* @param {methodOptions} [options] - Options
|
|
1293
|
+
*/
|
|
1294
|
+
getSkyblockNews(options?: methodOptions): Promise<SkyblockNews>;
|
|
1295
|
+
/**
|
|
1296
|
+
* @description Allows you to get a player's skyblock profiles
|
|
1297
|
+
* @param query - player nickname or uuid
|
|
1298
|
+
* @param {methodOptions} [options] - Options
|
|
1299
|
+
*/
|
|
1300
|
+
getSkyblockProfiles(query: string, options?: skyblockMemberOptions): Promise<SkyblockProfile[]>;
|
|
1301
|
+
/**
|
|
1302
|
+
* @description Get a array of active houses
|
|
1303
|
+
* @param {methodOptions} [options] - Options
|
|
1304
|
+
*/
|
|
1305
|
+
getActiveHouses(options?: methodOptions): Promise<House[]>;
|
|
1306
|
+
/**
|
|
1307
|
+
* @description Get a array of houses for a user
|
|
1308
|
+
* @param query - UUID / IGN of player
|
|
1309
|
+
* @param {methodOptions} [options] - Options
|
|
1310
|
+
*/
|
|
1311
|
+
getPlayerHouses(query: string, options?: methodOptions): Promise<House[]>;
|
|
1312
|
+
/**
|
|
1313
|
+
* @description Get a house
|
|
1314
|
+
* @param query - house uuid
|
|
1315
|
+
* @param {methodOptions} [options] - Options
|
|
1316
|
+
*/
|
|
1317
|
+
getHouse(query: string, options?: methodOptions): Promise<House>;
|
|
1294
1318
|
/**
|
|
1295
1319
|
* @param amount - Amount of cache entries to delete
|
|
1296
1320
|
* @description Allows you to clear cache
|
|
@@ -3816,6 +3840,7 @@ declare module 'hypixel-api-reborn' {
|
|
|
3816
3840
|
blocksPlaced: number;
|
|
3817
3841
|
healthRegenerated: number;
|
|
3818
3842
|
goldenApplesEatan: number;
|
|
3843
|
+
goals: number;
|
|
3819
3844
|
}
|
|
3820
3845
|
class DuelsUHC {
|
|
3821
3846
|
constructor(data: Record<string, unknown>, mode: string, title: string);
|
|
@@ -3943,6 +3968,7 @@ declare module 'hypixel-api-reborn' {
|
|
|
3943
3968
|
blocksPlaced: number;
|
|
3944
3969
|
healthRegenerated: number;
|
|
3945
3970
|
goldenApplesEatan: number;
|
|
3971
|
+
goals: number;
|
|
3946
3972
|
}
|
|
3947
3973
|
class Duels {
|
|
3948
3974
|
constructor(data: Record<string, unknown>);
|