@duque.edits/sdk 1.1.0 → 1.1.3
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/dist/{index-C87LbIta.d.ts → index-BPxglVSk.d.ts} +83 -31
- package/dist/{index-BHHXH2xN.d.mts → index-DjHimKUy.d.mts} +83 -31
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +481 -292
- package/dist/index.mjs +481 -292
- package/dist/managers/automaticmessage/AutomaticMessageManager.d.mts +2 -1
- package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +2 -1
- package/dist/managers/automaticmessage/AutomaticMessageManager.js +41 -35
- package/dist/managers/automaticmessage/AutomaticMessageManager.mjs +41 -35
- package/dist/managers/base.d.mts +2 -1
- package/dist/managers/base.d.ts +2 -1
- package/dist/managers/base.js +3 -0
- package/dist/managers/base.mjs +3 -0
- package/dist/managers/bet/GuildBetManager.d.mts +2 -1
- package/dist/managers/bet/GuildBetManager.d.ts +2 -1
- package/dist/managers/bet/GuildBetManager.js +42 -30
- package/dist/managers/bet/GuildBetManager.mjs +42 -30
- package/dist/managers/betuser/GuildBetUserManager.d.mts +2 -1
- package/dist/managers/betuser/GuildBetUserManager.d.ts +2 -1
- package/dist/managers/betuser/GuildBetUserManager.js +32 -19
- package/dist/managers/betuser/GuildBetUserManager.mjs +32 -19
- package/dist/managers/buffer/BufferManager.d.mts +2 -1
- package/dist/managers/buffer/BufferManager.d.ts +2 -1
- package/dist/managers/buffer/BufferManager.js +1 -1
- package/dist/managers/buffer/BufferManager.mjs +1 -1
- package/dist/managers/guild/GuildManager.d.mts +2 -1
- package/dist/managers/guild/GuildManager.d.ts +2 -1
- package/dist/managers/guild/GuildManager.js +465 -279
- package/dist/managers/guild/GuildManager.mjs +465 -279
- package/dist/managers/index.d.mts +2 -1
- package/dist/managers/index.d.ts +2 -1
- package/dist/managers/index.js +480 -291
- package/dist/managers/index.mjs +480 -291
- package/dist/managers/logs/LogManager.d.mts +2 -1
- package/dist/managers/logs/LogManager.d.ts +2 -1
- package/dist/managers/logs/LogManager.js +24 -12
- package/dist/managers/logs/LogManager.mjs +24 -12
- package/dist/managers/match/GuildMatchManager.d.mts +2 -1
- package/dist/managers/match/GuildMatchManager.d.ts +2 -1
- package/dist/managers/match/GuildMatchManager.js +77 -61
- package/dist/managers/match/GuildMatchManager.mjs +77 -61
- package/dist/managers/mediator/GuildMediatorManager.d.mts +2 -1
- package/dist/managers/mediator/GuildMediatorManager.d.ts +2 -1
- package/dist/managers/mediator/GuildMediatorManager.js +30 -17
- package/dist/managers/mediator/GuildMediatorManager.mjs +30 -17
- package/dist/managers/message/MessagesManager.d.mts +2 -1
- package/dist/managers/message/MessagesManager.d.ts +2 -1
- package/dist/managers/minesgame/MinesGameManager.d.mts +2 -1
- package/dist/managers/minesgame/MinesGameManager.d.ts +2 -1
- package/dist/managers/minesgame/MinesGameManager.js +22 -13
- package/dist/managers/minesgame/MinesGameManager.mjs +22 -13
- package/dist/managers/permission/GuildPermissionManager.d.mts +2 -1
- package/dist/managers/permission/GuildPermissionManager.d.ts +2 -1
- package/dist/managers/permission/GuildPermissionManager.js +4 -1
- package/dist/managers/permission/GuildPermissionManager.mjs +4 -1
- package/dist/managers/player/PlayerManager.d.mts +2 -1
- package/dist/managers/player/PlayerManager.d.ts +2 -1
- package/dist/managers/ticket/TicketManager.d.mts +2 -1
- package/dist/managers/ticket/TicketManager.d.ts +2 -1
- package/dist/managers/ticket/TicketManager.js +42 -28
- package/dist/managers/ticket/TicketManager.mjs +42 -28
- package/dist/managers/tournament/TournamentManager.d.mts +21 -0
- package/dist/managers/tournament/TournamentManager.d.ts +21 -0
- package/dist/managers/tournament/TournamentManager.js +753 -0
- package/dist/managers/tournament/TournamentManager.mjs +745 -0
- package/dist/managers/user/GuildUserManager.d.mts +2 -1
- package/dist/managers/user/GuildUserManager.d.ts +2 -1
- package/dist/managers/user/GuildUserManager.js +49 -36
- package/dist/managers/user/GuildUserManager.mjs +49 -36
- package/dist/managers/vipmember/VipMemberManager.d.mts +2 -1
- package/dist/managers/vipmember/VipMemberManager.d.ts +2 -1
- package/dist/managers/vipmember/VipMemberManager.js +4 -1
- package/dist/managers/vipmember/VipMemberManager.mjs +4 -1
- package/dist/rest/REST.d.mts +2 -1
- package/dist/rest/REST.d.ts +2 -1
- package/dist/rest/REST.js +482 -293
- package/dist/rest/REST.mjs +482 -293
- package/dist/rest/Routes.js +1 -1
- package/dist/rest/Routes.mjs +1 -1
- package/dist/rest/index.d.mts +2 -1
- package/dist/rest/index.d.ts +2 -1
- package/dist/rest/index.js +482 -293
- package/dist/rest/index.mjs +482 -293
- package/dist/structures/automaticmessage/AutomaticMessage.d.mts +2 -1
- package/dist/structures/automaticmessage/AutomaticMessage.d.ts +2 -1
- package/dist/structures/automaticmessage/AutomaticMessage.js +30 -26
- package/dist/structures/automaticmessage/AutomaticMessage.mjs +30 -26
- package/dist/structures/bet/GuildBet.d.mts +2 -1
- package/dist/structures/bet/GuildBet.d.ts +2 -1
- package/dist/structures/bet/GuildBet.js +39 -30
- package/dist/structures/bet/GuildBet.mjs +39 -30
- package/dist/structures/betuser/GuildBetUser.d.mts +2 -1
- package/dist/structures/betuser/GuildBetUser.d.ts +2 -1
- package/dist/structures/betuser/GuildBetUser.js +29 -19
- package/dist/structures/betuser/GuildBetUser.mjs +29 -19
- package/dist/structures/guild/Guild.d.mts +2 -1
- package/dist/structures/guild/Guild.d.ts +2 -1
- package/dist/structures/guild/Guild.js +451 -274
- package/dist/structures/guild/Guild.mjs +451 -274
- package/dist/structures/index.d.mts +2 -1
- package/dist/structures/index.d.ts +2 -1
- package/dist/structures/index.js +468 -288
- package/dist/structures/index.mjs +468 -288
- package/dist/structures/logentry/LogEntry.d.mts +2 -1
- package/dist/structures/logentry/LogEntry.d.ts +2 -1
- package/dist/structures/logentry/LogEntry.js +21 -12
- package/dist/structures/logentry/LogEntry.mjs +21 -12
- package/dist/structures/match/GuildMatch.d.mts +2 -1
- package/dist/structures/match/GuildMatch.d.ts +2 -1
- package/dist/structures/match/GuildMatch.js +74 -61
- package/dist/structures/match/GuildMatch.mjs +74 -61
- package/dist/structures/mediator/GuildMediator.d.mts +2 -1
- package/dist/structures/mediator/GuildMediator.d.ts +2 -1
- package/dist/structures/mediator/GuildMediator.js +27 -17
- package/dist/structures/mediator/GuildMediator.mjs +27 -17
- package/dist/structures/minesgame/MinesGame.d.mts +2 -1
- package/dist/structures/minesgame/MinesGame.d.ts +2 -1
- package/dist/structures/minesgame/MinesGame.js +22 -13
- package/dist/structures/minesgame/MinesGame.mjs +22 -13
- package/dist/structures/ticket/Ticket.d.mts +2 -1
- package/dist/structures/ticket/Ticket.d.ts +2 -1
- package/dist/structures/ticket/Ticket.js +27 -18
- package/dist/structures/ticket/Ticket.mjs +27 -18
- package/dist/structures/tournament/Tournament.d.mts +21 -0
- package/dist/structures/tournament/Tournament.d.ts +21 -0
- package/dist/structures/tournament/Tournament.js +593 -0
- package/dist/structures/tournament/Tournament.mjs +585 -0
- package/dist/structures/user/GuildUser.d.mts +2 -1
- package/dist/structures/user/GuildUser.d.ts +2 -1
- package/dist/structures/user/GuildUser.js +46 -36
- package/dist/structures/user/GuildUser.mjs +46 -36
- package/dist/structures/vipmember/VipMember.d.mts +2 -1
- package/dist/structures/vipmember/VipMember.d.ts +2 -1
- package/dist/structures/vipmember/VipMember.js +1 -1
- package/dist/structures/vipmember/VipMember.mjs +1 -1
- package/dist/types/RestTypes.d.mts +2 -1
- package/dist/types/RestTypes.d.ts +2 -1
- package/dist/types/api/APIAutomaticMessage.d.mts +2 -1
- package/dist/types/api/APIAutomaticMessage.d.ts +2 -1
- package/dist/types/api/APIGuild.d.mts +2 -1
- package/dist/types/api/APIGuild.d.ts +2 -1
- package/dist/types/api/APIGuildBet.d.mts +2 -1
- package/dist/types/api/APIGuildBet.d.ts +2 -1
- package/dist/types/api/APIGuildBetUser.d.mts +2 -1
- package/dist/types/api/APIGuildBetUser.d.ts +2 -1
- package/dist/types/api/APIGuildGroupedChannel.d.mts +2 -1
- package/dist/types/api/APIGuildGroupedChannel.d.ts +2 -1
- package/dist/types/api/APIGuildMatch.d.mts +2 -1
- package/dist/types/api/APIGuildMatch.d.ts +2 -1
- package/dist/types/api/APIGuildUser.d.mts +2 -1
- package/dist/types/api/APIGuildUser.d.ts +2 -1
- package/dist/types/api/APITournament.d.mts +16 -0
- package/dist/types/api/APITournament.d.ts +16 -0
- package/dist/types/api/APITournament.js +18 -0
- package/dist/types/api/APITournament.mjs +0 -0
- package/dist/types/api/index.d.mts +2 -1
- package/dist/types/api/index.d.ts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,6 +3,9 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __typeError = (msg) => {
|
|
7
|
+
throw TypeError(msg);
|
|
8
|
+
};
|
|
6
9
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
10
|
var __export = (target, all) => {
|
|
8
11
|
for (var name in all)
|
|
@@ -18,6 +21,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
21
|
};
|
|
19
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
23
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
24
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
25
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
26
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
21
27
|
|
|
22
28
|
// src/structures/user/GuildUser.ts
|
|
23
29
|
var GuildUser_exports = {};
|
|
@@ -29,7 +35,7 @@ module.exports = __toCommonJS(GuildUser_exports);
|
|
|
29
35
|
// src/rest/Routes.ts
|
|
30
36
|
var Routes = {
|
|
31
37
|
//base: "http://localhost:80/api/v1",
|
|
32
|
-
base: "https://
|
|
38
|
+
base: "https://duqueapi.shardweb.app/api/v1",
|
|
33
39
|
field: (field) => `/${field}`,
|
|
34
40
|
fields: (...fields) => `${fields.join("/")}`,
|
|
35
41
|
guilds: {
|
|
@@ -129,7 +135,8 @@ var Routes = {
|
|
|
129
135
|
};
|
|
130
136
|
|
|
131
137
|
// src/structures/user/GuildUser.ts
|
|
132
|
-
var
|
|
138
|
+
var _GuildUser_instances, updateInternals_fn;
|
|
139
|
+
var _GuildUser = class _GuildUser {
|
|
133
140
|
/**
|
|
134
141
|
* Bet user
|
|
135
142
|
* @param data The user's data
|
|
@@ -137,6 +144,7 @@ var GuildUser = class _GuildUser {
|
|
|
137
144
|
* @param rest The rest client
|
|
138
145
|
*/
|
|
139
146
|
constructor(data, manager) {
|
|
147
|
+
__privateAdd(this, _GuildUser_instances);
|
|
140
148
|
/** User's id */
|
|
141
149
|
__publicField(this, "id");
|
|
142
150
|
__publicField(this, "guild_id");
|
|
@@ -249,7 +257,7 @@ var GuildUser = class _GuildUser {
|
|
|
249
257
|
url: route,
|
|
250
258
|
payload
|
|
251
259
|
});
|
|
252
|
-
this.
|
|
260
|
+
__privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
253
261
|
return this;
|
|
254
262
|
}
|
|
255
263
|
async updateProfile(data) {
|
|
@@ -270,43 +278,14 @@ var GuildUser = class _GuildUser {
|
|
|
270
278
|
url: route,
|
|
271
279
|
payload: _data
|
|
272
280
|
});
|
|
273
|
-
this.
|
|
274
|
-
return this;
|
|
275
|
-
}
|
|
276
|
-
_updateInternals(data) {
|
|
277
|
-
for (let key in data) {
|
|
278
|
-
if (key === "id" || key === "createdAt") continue;
|
|
279
|
-
if (key in this) {
|
|
280
|
-
this[key] = data[key];
|
|
281
|
-
}
|
|
282
|
-
if (key === "adverts") {
|
|
283
|
-
this.adverts = [];
|
|
284
|
-
for (let _adv of data.adverts) {
|
|
285
|
-
this.adverts.push({
|
|
286
|
-
_id: _adv._id,
|
|
287
|
-
admin_id: _adv.admin_id,
|
|
288
|
-
role_id: _adv.role_id,
|
|
289
|
-
reason: _adv.reason,
|
|
290
|
-
points_removed: _adv.points_removed,
|
|
291
|
-
proof: _adv.proof,
|
|
292
|
-
proof_ext: _adv.proof_ext,
|
|
293
|
-
createdAt: _adv.createdAt ? new Date(_adv.createdAt) : /* @__PURE__ */ new Date(),
|
|
294
|
-
updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
this.updatedAt = /* @__PURE__ */ new Date();
|
|
300
|
-
this.createdAt = new Date(data.createdAt);
|
|
301
|
-
this.manager.set(this);
|
|
302
|
-
this.rest.emit("userUpdate", this);
|
|
281
|
+
__privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
303
282
|
return this;
|
|
304
283
|
}
|
|
305
284
|
async addAdvert(data) {
|
|
306
285
|
const route = Routes.guilds.users.resource(this.manager.guild.id, this.id, "adverts");
|
|
307
286
|
const payload = data;
|
|
308
287
|
const response = await this.rest.request({ method: "POST", url: route, payload });
|
|
309
|
-
return this.
|
|
288
|
+
return __privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
310
289
|
}
|
|
311
290
|
async removeAdvert(advertId) {
|
|
312
291
|
let advs = this.adverts;
|
|
@@ -315,7 +294,7 @@ var GuildUser = class _GuildUser {
|
|
|
315
294
|
const payload = { adverts: advs };
|
|
316
295
|
const route = Routes.guilds.users.update(this.manager.guild.id, this.id);
|
|
317
296
|
const response = await this.rest.request({ method: "PATCH", url: route, payload });
|
|
318
|
-
return this.
|
|
297
|
+
return __privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
319
298
|
}
|
|
320
299
|
/**
|
|
321
300
|
* Update certain property
|
|
@@ -366,7 +345,7 @@ var GuildUser = class _GuildUser {
|
|
|
366
345
|
url: route,
|
|
367
346
|
payload
|
|
368
347
|
});
|
|
369
|
-
this.
|
|
348
|
+
__privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
370
349
|
return this;
|
|
371
350
|
}
|
|
372
351
|
async delete() {
|
|
@@ -391,6 +370,37 @@ var GuildUser = class _GuildUser {
|
|
|
391
370
|
return json;
|
|
392
371
|
}
|
|
393
372
|
};
|
|
373
|
+
_GuildUser_instances = new WeakSet();
|
|
374
|
+
updateInternals_fn = function(data) {
|
|
375
|
+
for (let key in data) {
|
|
376
|
+
if (key === "id" || key === "createdAt") continue;
|
|
377
|
+
if (key in this) {
|
|
378
|
+
this[key] = data[key];
|
|
379
|
+
}
|
|
380
|
+
if (key === "adverts") {
|
|
381
|
+
this.adverts = [];
|
|
382
|
+
for (let _adv of data.adverts) {
|
|
383
|
+
this.adverts.push({
|
|
384
|
+
_id: _adv._id,
|
|
385
|
+
admin_id: _adv.admin_id,
|
|
386
|
+
role_id: _adv.role_id,
|
|
387
|
+
reason: _adv.reason,
|
|
388
|
+
points_removed: _adv.points_removed,
|
|
389
|
+
proof: _adv.proof,
|
|
390
|
+
proof_ext: _adv.proof_ext,
|
|
391
|
+
createdAt: _adv.createdAt ? new Date(_adv.createdAt) : /* @__PURE__ */ new Date(),
|
|
392
|
+
updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
this.updatedAt = /* @__PURE__ */ new Date();
|
|
398
|
+
this.createdAt = new Date(data.createdAt);
|
|
399
|
+
this.manager.set(this);
|
|
400
|
+
this.rest.emit("userUpdate", this);
|
|
401
|
+
return this;
|
|
402
|
+
};
|
|
403
|
+
var GuildUser = _GuildUser;
|
|
394
404
|
// Annotate the CommonJS export names for ESM import in node:
|
|
395
405
|
0 && (module.exports = {
|
|
396
406
|
GuildUser
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
2
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
6
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
8
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
9
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
4
10
|
|
|
5
11
|
// src/rest/Routes.ts
|
|
6
12
|
var Routes = {
|
|
7
13
|
//base: "http://localhost:80/api/v1",
|
|
8
|
-
base: "https://
|
|
14
|
+
base: "https://duqueapi.shardweb.app/api/v1",
|
|
9
15
|
field: (field) => `/${field}`,
|
|
10
16
|
fields: (...fields) => `${fields.join("/")}`,
|
|
11
17
|
guilds: {
|
|
@@ -105,7 +111,8 @@ var Routes = {
|
|
|
105
111
|
};
|
|
106
112
|
|
|
107
113
|
// src/structures/user/GuildUser.ts
|
|
108
|
-
var
|
|
114
|
+
var _GuildUser_instances, updateInternals_fn;
|
|
115
|
+
var _GuildUser = class _GuildUser {
|
|
109
116
|
/**
|
|
110
117
|
* Bet user
|
|
111
118
|
* @param data The user's data
|
|
@@ -113,6 +120,7 @@ var GuildUser = class _GuildUser {
|
|
|
113
120
|
* @param rest The rest client
|
|
114
121
|
*/
|
|
115
122
|
constructor(data, manager) {
|
|
123
|
+
__privateAdd(this, _GuildUser_instances);
|
|
116
124
|
/** User's id */
|
|
117
125
|
__publicField(this, "id");
|
|
118
126
|
__publicField(this, "guild_id");
|
|
@@ -225,7 +233,7 @@ var GuildUser = class _GuildUser {
|
|
|
225
233
|
url: route,
|
|
226
234
|
payload
|
|
227
235
|
});
|
|
228
|
-
this.
|
|
236
|
+
__privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
229
237
|
return this;
|
|
230
238
|
}
|
|
231
239
|
async updateProfile(data) {
|
|
@@ -246,43 +254,14 @@ var GuildUser = class _GuildUser {
|
|
|
246
254
|
url: route,
|
|
247
255
|
payload: _data
|
|
248
256
|
});
|
|
249
|
-
this.
|
|
250
|
-
return this;
|
|
251
|
-
}
|
|
252
|
-
_updateInternals(data) {
|
|
253
|
-
for (let key in data) {
|
|
254
|
-
if (key === "id" || key === "createdAt") continue;
|
|
255
|
-
if (key in this) {
|
|
256
|
-
this[key] = data[key];
|
|
257
|
-
}
|
|
258
|
-
if (key === "adverts") {
|
|
259
|
-
this.adverts = [];
|
|
260
|
-
for (let _adv of data.adverts) {
|
|
261
|
-
this.adverts.push({
|
|
262
|
-
_id: _adv._id,
|
|
263
|
-
admin_id: _adv.admin_id,
|
|
264
|
-
role_id: _adv.role_id,
|
|
265
|
-
reason: _adv.reason,
|
|
266
|
-
points_removed: _adv.points_removed,
|
|
267
|
-
proof: _adv.proof,
|
|
268
|
-
proof_ext: _adv.proof_ext,
|
|
269
|
-
createdAt: _adv.createdAt ? new Date(_adv.createdAt) : /* @__PURE__ */ new Date(),
|
|
270
|
-
updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
this.updatedAt = /* @__PURE__ */ new Date();
|
|
276
|
-
this.createdAt = new Date(data.createdAt);
|
|
277
|
-
this.manager.set(this);
|
|
278
|
-
this.rest.emit("userUpdate", this);
|
|
257
|
+
__privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
279
258
|
return this;
|
|
280
259
|
}
|
|
281
260
|
async addAdvert(data) {
|
|
282
261
|
const route = Routes.guilds.users.resource(this.manager.guild.id, this.id, "adverts");
|
|
283
262
|
const payload = data;
|
|
284
263
|
const response = await this.rest.request({ method: "POST", url: route, payload });
|
|
285
|
-
return this.
|
|
264
|
+
return __privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
286
265
|
}
|
|
287
266
|
async removeAdvert(advertId) {
|
|
288
267
|
let advs = this.adverts;
|
|
@@ -291,7 +270,7 @@ var GuildUser = class _GuildUser {
|
|
|
291
270
|
const payload = { adverts: advs };
|
|
292
271
|
const route = Routes.guilds.users.update(this.manager.guild.id, this.id);
|
|
293
272
|
const response = await this.rest.request({ method: "PATCH", url: route, payload });
|
|
294
|
-
return this.
|
|
273
|
+
return __privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
295
274
|
}
|
|
296
275
|
/**
|
|
297
276
|
* Update certain property
|
|
@@ -342,7 +321,7 @@ var GuildUser = class _GuildUser {
|
|
|
342
321
|
url: route,
|
|
343
322
|
payload
|
|
344
323
|
});
|
|
345
|
-
this.
|
|
324
|
+
__privateMethod(this, _GuildUser_instances, updateInternals_fn).call(this, response);
|
|
346
325
|
return this;
|
|
347
326
|
}
|
|
348
327
|
async delete() {
|
|
@@ -367,6 +346,37 @@ var GuildUser = class _GuildUser {
|
|
|
367
346
|
return json;
|
|
368
347
|
}
|
|
369
348
|
};
|
|
349
|
+
_GuildUser_instances = new WeakSet();
|
|
350
|
+
updateInternals_fn = function(data) {
|
|
351
|
+
for (let key in data) {
|
|
352
|
+
if (key === "id" || key === "createdAt") continue;
|
|
353
|
+
if (key in this) {
|
|
354
|
+
this[key] = data[key];
|
|
355
|
+
}
|
|
356
|
+
if (key === "adverts") {
|
|
357
|
+
this.adverts = [];
|
|
358
|
+
for (let _adv of data.adverts) {
|
|
359
|
+
this.adverts.push({
|
|
360
|
+
_id: _adv._id,
|
|
361
|
+
admin_id: _adv.admin_id,
|
|
362
|
+
role_id: _adv.role_id,
|
|
363
|
+
reason: _adv.reason,
|
|
364
|
+
points_removed: _adv.points_removed,
|
|
365
|
+
proof: _adv.proof,
|
|
366
|
+
proof_ext: _adv.proof_ext,
|
|
367
|
+
createdAt: _adv.createdAt ? new Date(_adv.createdAt) : /* @__PURE__ */ new Date(),
|
|
368
|
+
updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
this.updatedAt = /* @__PURE__ */ new Date();
|
|
374
|
+
this.createdAt = new Date(data.createdAt);
|
|
375
|
+
this.manager.set(this);
|
|
376
|
+
this.rest.emit("userUpdate", this);
|
|
377
|
+
return this;
|
|
378
|
+
};
|
|
379
|
+
var GuildUser = _GuildUser;
|
|
370
380
|
export {
|
|
371
381
|
GuildUser
|
|
372
382
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as VipMember } from '../../index-
|
|
1
|
+
export { s as VipMember } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import '../../types/api/APIVipMember.mjs';
|
|
3
3
|
import '../../types/api/APIAdvert.mjs';
|
|
4
4
|
import '../../types/api/APIBaseChannel.mjs';
|
|
@@ -18,3 +18,4 @@ import '../../types/api/APILogEntry.mjs';
|
|
|
18
18
|
import '../../types/api/APIMinesGame.mjs';
|
|
19
19
|
import '../Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import '../../types/api/APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as VipMember } from '../../index-
|
|
1
|
+
export { s as VipMember } from '../../index-BPxglVSk.js';
|
|
2
2
|
import '../../types/api/APIVipMember.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
@@ -18,3 +18,4 @@ import '../../types/api/APILogEntry.js';
|
|
|
18
18
|
import '../../types/api/APIMinesGame.js';
|
|
19
19
|
import '../Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import '../../types/api/APITournament.js';
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(VipMember_exports);
|
|
|
35
35
|
// src/rest/Routes.ts
|
|
36
36
|
var Routes = {
|
|
37
37
|
//base: "http://localhost:80/api/v1",
|
|
38
|
-
base: "https://
|
|
38
|
+
base: "https://duqueapi.shardweb.app/api/v1",
|
|
39
39
|
field: (field) => `/${field}`,
|
|
40
40
|
fields: (...fields) => `${fields.join("/")}`,
|
|
41
41
|
guilds: {
|
|
@@ -11,7 +11,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
11
11
|
// src/rest/Routes.ts
|
|
12
12
|
var Routes = {
|
|
13
13
|
//base: "http://localhost:80/api/v1",
|
|
14
|
-
base: "https://
|
|
14
|
+
base: "https://duqueapi.shardweb.app/api/v1",
|
|
15
15
|
field: (field) => `/${field}`,
|
|
16
16
|
fields: (...fields) => `${fields.join("/")}`,
|
|
17
17
|
guilds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ah as RequestOptions, ai as RestEvents } from '../index-
|
|
1
|
+
export { ah as RequestOptions, ai as RestEvents } from '../index-DjHimKUy.mjs';
|
|
2
2
|
import '../structures/Collection.mjs';
|
|
3
3
|
import './api/APIAdvert.mjs';
|
|
4
4
|
import './api/APIBaseChannel.mjs';
|
|
@@ -18,3 +18,4 @@ import './api/APILogEntry.mjs';
|
|
|
18
18
|
import './api/APIMinesGame.mjs';
|
|
19
19
|
import './api/APIVipMember.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './api/APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ah as RequestOptions, ai as RestEvents } from '../index-
|
|
1
|
+
export { ah as RequestOptions, ai as RestEvents } from '../index-BPxglVSk.js';
|
|
2
2
|
import '../structures/Collection.js';
|
|
3
3
|
import './api/APIAdvert.js';
|
|
4
4
|
import './api/APIBaseChannel.js';
|
|
@@ -18,3 +18,4 @@ import './api/APILogEntry.js';
|
|
|
18
18
|
import './api/APIMinesGame.js';
|
|
19
19
|
import './api/APIVipMember.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './api/APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as APIAutomaticMessage } from '../../index-
|
|
1
|
+
export { U as APIAutomaticMessage } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIAdvert.mjs';
|
|
3
3
|
import './APIBaseChannel.mjs';
|
|
4
4
|
import './APIBetChannel.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as APIAutomaticMessage } from '../../index-
|
|
1
|
+
export { U as APIAutomaticMessage } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIBetChannel.js';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a5 as APIGuild, a3 as AutomaticMessagesTypes, _ as DailyCategories, a4 as GuildChannelsType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, a1 as RoulettePrize, a2 as RouletteSettings } from '../../index-
|
|
1
|
+
export { a5 as APIGuild, a3 as AutomaticMessagesTypes, _ as DailyCategories, a4 as GuildChannelsType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, a1 as RoulettePrize, a2 as RouletteSettings } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIGuildPermissions.mjs';
|
|
3
3
|
import './APIGuildShop.mjs';
|
|
4
4
|
import './APIGuildAdvert.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIProduct.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a5 as APIGuild, a3 as AutomaticMessagesTypes, _ as DailyCategories, a4 as GuildChannelsType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, a1 as RoulettePrize, a2 as RouletteSettings } from '../../index-
|
|
1
|
+
export { a5 as APIGuild, a3 as AutomaticMessagesTypes, _ as DailyCategories, a4 as GuildChannelsType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, a1 as RoulettePrize, a2 as RouletteSettings } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIGuildPermissions.js';
|
|
3
3
|
import './APIGuildShop.js';
|
|
4
4
|
import './APIGuildAdvert.js';
|
|
@@ -18,3 +18,4 @@ import './APIProduct.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a8 as APIGuildBet, a7 as BetChannelTypes, a6 as BetQueue } from '../../index-
|
|
1
|
+
export { a8 as APIGuildBet, a7 as BetChannelTypes, a6 as BetQueue } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIBetChannel.mjs';
|
|
3
3
|
import './APIMessage.mjs';
|
|
4
4
|
import './APIPlayer.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a8 as APIGuildBet, a7 as BetChannelTypes, a6 as BetQueue } from '../../index-
|
|
1
|
+
export { a8 as APIGuildBet, a7 as BetChannelTypes, a6 as BetQueue } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIBetChannel.js';
|
|
3
3
|
import './APIMessage.js';
|
|
4
4
|
import './APIPlayer.js';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as APIGuildBetUser } from '../../index-
|
|
1
|
+
export { a9 as APIGuildBetUser } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIAdvert.mjs';
|
|
3
3
|
import './APIBaseChannel.mjs';
|
|
4
4
|
import './APIBetChannel.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as APIGuildBetUser } from '../../index-
|
|
1
|
+
export { a9 as APIGuildBetUser } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIBetChannel.js';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aa as APIGuildGroupedChannel } from '../../index-
|
|
1
|
+
export { aa as APIGuildGroupedChannel } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIAdvert.mjs';
|
|
3
3
|
import './APIBaseChannel.mjs';
|
|
4
4
|
import './APIBetChannel.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aa as APIGuildGroupedChannel } from '../../index-
|
|
1
|
+
export { aa as APIGuildGroupedChannel } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIBetChannel.js';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ac as APIGuildMatch, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, ab as MatchSelection } from '../../index-
|
|
1
|
+
export { ac as APIGuildMatch, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, ab as MatchSelection } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIPlayer.mjs';
|
|
3
3
|
import './APIBaseChannel.mjs';
|
|
4
4
|
import './APIMessage.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ac as APIGuildMatch, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, ab as MatchSelection } from '../../index-
|
|
1
|
+
export { ac as APIGuildMatch, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, ab as MatchSelection } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIPlayer.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIMessage.js';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ag as APIGuildUser, af as Profile } from '../../index-
|
|
1
|
+
export { ag as APIGuildUser, af as Profile } from '../../index-DjHimKUy.mjs';
|
|
2
2
|
import './APIAdvert.mjs';
|
|
3
3
|
import './APIBaseChannel.mjs';
|
|
4
4
|
import './APIBetChannel.mjs';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.mjs';
|
|
|
18
18
|
import './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ag as APIGuildUser, af as Profile } from '../../index-
|
|
1
|
+
export { ag as APIGuildUser, af as Profile } from '../../index-BPxglVSk.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIBetChannel.js';
|
|
@@ -18,3 +18,4 @@ import './APIMinesGame.js';
|
|
|
18
18
|
import './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIPlayer } from './APIPlayer.mjs';
|
|
2
|
+
|
|
3
|
+
interface APITournament {
|
|
4
|
+
_id: string;
|
|
5
|
+
guild_id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
max_teams: number;
|
|
8
|
+
teams: APIPlayer[][];
|
|
9
|
+
message: any;
|
|
10
|
+
message_id: string;
|
|
11
|
+
status: "created" | "on" | "off";
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type { APITournament };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIPlayer } from './APIPlayer.js';
|
|
2
|
+
|
|
3
|
+
interface APITournament {
|
|
4
|
+
_id: string;
|
|
5
|
+
guild_id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
max_teams: number;
|
|
8
|
+
teams: APIPlayer[][];
|
|
9
|
+
message: any;
|
|
10
|
+
message_id: string;
|
|
11
|
+
status: "created" | "on" | "off";
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type { APITournament };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/api/APITournament.ts
|
|
17
|
+
var APITournament_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(APITournament_exports);
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { APIAdvert } from './APIAdvert.mjs';
|
|
2
|
-
export { U as APIAutomaticMessage, a5 as APIGuild, a8 as APIGuildBet, a9 as APIGuildBetUser, aa as APIGuildGroupedChannel, ac as APIGuildMatch, ag as APIGuildUser, v as APITicketCategory, D as Accessory, a3 as AutomaticMessagesTypes, Q as BETSTATUS, H as Banner, x as BaseMatchModes, y as BaseMatchStatus, a7 as BetChannelTypes, a6 as BetQueue, I as Confirm, E as Daily, _ as DailyCategories, a4 as GuildChannelsType, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, w as LogMessage, z as Logs, N as MATCHSTATUS, K as MATCHTYPES, ab as MatchSelection, J as Optional, O as OriginalChannel, C as OriginalChannels, af as Profile, P as ProfileCard, a1 as RoulettePrize, a2 as RouletteSettings, S as STATES, T as StatusResponse } from '../../index-
|
|
2
|
+
export { U as APIAutomaticMessage, a5 as APIGuild, a8 as APIGuildBet, a9 as APIGuildBetUser, aa as APIGuildGroupedChannel, ac as APIGuildMatch, ag as APIGuildUser, v as APITicketCategory, D as Accessory, a3 as AutomaticMessagesTypes, Q as BETSTATUS, H as Banner, x as BaseMatchModes, y as BaseMatchStatus, a7 as BetChannelTypes, a6 as BetQueue, I as Confirm, E as Daily, _ as DailyCategories, a4 as GuildChannelsType, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, w as LogMessage, z as Logs, N as MATCHSTATUS, K as MATCHTYPES, ab as MatchSelection, J as Optional, O as OriginalChannel, C as OriginalChannels, af as Profile, P as ProfileCard, a1 as RoulettePrize, a2 as RouletteSettings, S as STATES, T as StatusResponse } from '../../index-DjHimKUy.mjs';
|
|
3
3
|
export { APIBaseChannel } from './APIBaseChannel.mjs';
|
|
4
4
|
export { APIBetChannel } from './APIBetChannel.mjs';
|
|
5
5
|
export { APICode } from './APICode.mjs';
|
|
@@ -18,3 +18,4 @@ export { APIProduct } from './APIProduct.mjs';
|
|
|
18
18
|
export { APIVipMember } from './APIVipMember.mjs';
|
|
19
19
|
import '../../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { APIAdvert } from './APIAdvert.js';
|
|
2
|
-
export { U as APIAutomaticMessage, a5 as APIGuild, a8 as APIGuildBet, a9 as APIGuildBetUser, aa as APIGuildGroupedChannel, ac as APIGuildMatch, ag as APIGuildUser, v as APITicketCategory, D as Accessory, a3 as AutomaticMessagesTypes, Q as BETSTATUS, H as Banner, x as BaseMatchModes, y as BaseMatchStatus, a7 as BetChannelTypes, a6 as BetQueue, I as Confirm, E as Daily, _ as DailyCategories, a4 as GuildChannelsType, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, w as LogMessage, z as Logs, N as MATCHSTATUS, K as MATCHTYPES, ab as MatchSelection, J as Optional, O as OriginalChannel, C as OriginalChannels, af as Profile, P as ProfileCard, a1 as RoulettePrize, a2 as RouletteSettings, S as STATES, T as StatusResponse } from '../../index-
|
|
2
|
+
export { U as APIAutomaticMessage, a5 as APIGuild, a8 as APIGuildBet, a9 as APIGuildBetUser, aa as APIGuildGroupedChannel, ac as APIGuildMatch, ag as APIGuildUser, v as APITicketCategory, D as Accessory, a3 as AutomaticMessagesTypes, Q as BETSTATUS, H as Banner, x as BaseMatchModes, y as BaseMatchStatus, a7 as BetChannelTypes, a6 as BetQueue, I as Confirm, E as Daily, _ as DailyCategories, a4 as GuildChannelsType, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, w as LogMessage, z as Logs, N as MATCHSTATUS, K as MATCHTYPES, ab as MatchSelection, J as Optional, O as OriginalChannel, C as OriginalChannels, af as Profile, P as ProfileCard, a1 as RoulettePrize, a2 as RouletteSettings, S as STATES, T as StatusResponse } from '../../index-BPxglVSk.js';
|
|
3
3
|
export { APIBaseChannel } from './APIBaseChannel.js';
|
|
4
4
|
export { APIBetChannel } from './APIBetChannel.js';
|
|
5
5
|
export { APICode } from './APICode.js';
|
|
@@ -18,3 +18,4 @@ export { APIProduct } from './APIProduct.js';
|
|
|
18
18
|
export { APIVipMember } from './APIVipMember.js';
|
|
19
19
|
import '../../structures/Collection.js';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './APITournament.js';
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as APIAutomaticMessage, a5 as APIGuild, a8 as APIGuildBet, a9 as APIGuildBetUser, aa as APIGuildGroupedChannel, ac as APIGuildMatch, ag as APIGuildUser, v as APITicketCategory, D as Accessory, a3 as AutomaticMessagesTypes, Q as BETSTATUS, H as Banner, x as BaseMatchModes, y as BaseMatchStatus, a7 as BetChannelTypes, a6 as BetQueue, I as Confirm, E as Daily, _ as DailyCategories, a4 as GuildChannelsType, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, w as LogMessage, z as Logs, N as MATCHSTATUS, K as MATCHTYPES, ab as MatchSelection, J as Optional, O as OriginalChannel, C as OriginalChannels, af as Profile, P as ProfileCard, ah as RequestOptions, ai as RestEvents, a1 as RoulettePrize, a2 as RouletteSettings, S as STATES, T as StatusResponse } from '../index-
|
|
1
|
+
export { U as APIAutomaticMessage, a5 as APIGuild, a8 as APIGuildBet, a9 as APIGuildBetUser, aa as APIGuildGroupedChannel, ac as APIGuildMatch, ag as APIGuildUser, v as APITicketCategory, D as Accessory, a3 as AutomaticMessagesTypes, Q as BETSTATUS, H as Banner, x as BaseMatchModes, y as BaseMatchStatus, a7 as BetChannelTypes, a6 as BetQueue, I as Confirm, E as Daily, _ as DailyCategories, a4 as GuildChannelsType, ad as GuildMatchChannelsType, ae as GuildMatchMessagesType, Z as GuildModes, $ as GuildPrices, a0 as GuildScores, X as GuildStatus, Y as GuildStatusEnum, W as GuildTicketConfiguration, w as LogMessage, z as Logs, N as MATCHSTATUS, K as MATCHTYPES, ab as MatchSelection, J as Optional, O as OriginalChannel, C as OriginalChannels, af as Profile, P as ProfileCard, ah as RequestOptions, ai as RestEvents, a1 as RoulettePrize, a2 as RouletteSettings, S as STATES, T as StatusResponse } from '../index-DjHimKUy.mjs';
|
|
2
2
|
export { APIAdvert } from './api/APIAdvert.mjs';
|
|
3
3
|
export { APIBaseChannel } from './api/APIBaseChannel.mjs';
|
|
4
4
|
export { APIBetChannel } from './api/APIBetChannel.mjs';
|
|
@@ -18,3 +18,4 @@ export { APIProduct } from './api/APIProduct.mjs';
|
|
|
18
18
|
export { APIVipMember } from './api/APIVipMember.mjs';
|
|
19
19
|
import '../structures/Collection.mjs';
|
|
20
20
|
import 'events';
|
|
21
|
+
import './api/APITournament.mjs';
|