@duque.edits/sdk 1.6.0 → 1.6.5
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-BlU-ryiZ.d.ts → index-Ba4fOyKx.d.ts} +297 -287
- package/dist/index.d.ts +2 -1
- package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +2 -1
- package/dist/managers/base.d.ts +2 -1
- package/dist/managers/bet/GuildBetManager.d.ts +2 -1
- package/dist/managers/betuser/GuildBetUserManager.d.ts +2 -1
- package/dist/managers/buffer/BufferManager.d.ts +2 -1
- package/dist/managers/guild/GuildManager.d.ts +2 -1
- package/dist/managers/index.d.ts +2 -1
- package/dist/managers/logs/LogManager.d.ts +2 -1
- package/dist/managers/match/GuildMatchManager.d.ts +2 -1
- package/dist/managers/mediator/GuildMediatorManager.d.ts +2 -1
- package/dist/managers/message/MessagesManager.d.ts +2 -1
- package/dist/managers/minesgame/MinesGameManager.d.ts +2 -1
- package/dist/managers/permission/GuildPermissionManager.d.ts +2 -1
- package/dist/managers/player/PlayerManager.d.ts +2 -1
- package/dist/managers/product/ProductManager.d.ts +2 -1
- package/dist/managers/shop/ShopManager.d.ts +2 -1
- package/dist/managers/ticket/TicketManager.d.ts +2 -1
- package/dist/managers/ticketpanel/TicketPanelManager.d.ts +2 -1
- package/dist/managers/tournament/TournamentManager.d.ts +2 -1
- package/dist/managers/user/GuildUserManager.d.ts +2 -1
- package/dist/managers/user/GuildUserManager.js +0 -1
- package/dist/managers/vipmember/VipMemberManager.d.ts +2 -1
- package/dist/rest/REST.d.ts +2 -1
- package/dist/rest/index.d.ts +2 -1
- package/dist/structures/automaticmessage/AutomaticMessage.d.ts +2 -1
- package/dist/structures/bet/GuildBet.d.ts +2 -1
- package/dist/structures/betuser/GuildBetUser.d.ts +2 -1
- package/dist/structures/guild/Guild.d.ts +2 -1
- package/dist/structures/guild/Guild.js +51 -3
- package/dist/structures/index.d.ts +2 -1
- package/dist/structures/logentry/LogEntry.d.ts +2 -1
- package/dist/structures/match/GuildMatch.d.ts +2 -1
- package/dist/structures/mediator/GuildMediator.d.ts +2 -1
- package/dist/structures/minesgame/MinesGame.d.ts +2 -1
- package/dist/structures/product/Product.d.ts +2 -1
- package/dist/structures/shop/Shop.d.ts +2 -1
- package/dist/structures/ticket/Ticket.d.ts +2 -1
- package/dist/structures/ticketpanel/TicketPanel.d.ts +2 -1
- package/dist/structures/tournament/Tournament.d.ts +2 -1
- package/dist/structures/user/GuildUser.d.ts +2 -1
- package/dist/structures/user/GuildUser.js +3 -1
- package/dist/structures/vipmember/VipMember.d.ts +2 -1
- package/dist/types/RestTypes.d.ts +2 -1
- package/dist/types/api/APIAutomaticMessage.d.ts +2 -1
- package/dist/types/api/APIAutomaticRole.d.ts +18 -0
- package/dist/types/api/APIAutomaticRole.js +36 -0
- package/dist/types/api/APIGuild.d.ts +2 -1
- package/dist/types/api/APIGuild.js +1 -0
- package/dist/types/api/APIGuildBet.d.ts +2 -1
- package/dist/types/api/APIGuildBetUser.d.ts +2 -1
- package/dist/types/api/APIGuildGroupedChannel.d.ts +2 -1
- package/dist/types/api/APIGuildMatch.d.ts +2 -1
- package/dist/types/api/APIGuildPermissions.d.ts +4 -2
- package/dist/types/api/APIGuildPermissions.js +3 -1
- package/dist/types/api/APIGuildUser.d.ts +2 -1
- package/dist/types/api/APILogEntry.d.ts +1 -0
- package/dist/types/api/APILogEntry.js +1 -0
- package/dist/types/api/APITicketPanel.d.ts +2 -1
- package/dist/types/api/index.d.ts +2 -1
- package/dist/types/api/index.js +2 -0
- package/dist/types/index.d.ts +2 -1
- package/package.json +2 -1
|
@@ -0,0 +1,36 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var APIAutomaticRole_exports = {};
|
|
20
|
+
__export(APIAutomaticRole_exports, {
|
|
21
|
+
AutomaticRolesTypes: () => AutomaticRolesTypes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(APIAutomaticRole_exports);
|
|
24
|
+
var AutomaticRolesTypes = /* @__PURE__ */ ((AutomaticRolesTypes2) => {
|
|
25
|
+
AutomaticRolesTypes2["Points"] = "points";
|
|
26
|
+
AutomaticRolesTypes2["Coins"] = "coins";
|
|
27
|
+
AutomaticRolesTypes2["Losses"] = "losses";
|
|
28
|
+
AutomaticRolesTypes2["Mvps"] = "mvps";
|
|
29
|
+
AutomaticRolesTypes2["Wins"] = "wins";
|
|
30
|
+
AutomaticRolesTypes2["Creations"] = "creations";
|
|
31
|
+
return AutomaticRolesTypes2;
|
|
32
|
+
})(AutomaticRolesTypes || {});
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
AutomaticRolesTypes
|
|
36
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { a as APIGuild,
|
|
1
|
+
export { a as APIGuild, m as AutomaticMessagesTypes, w as DailyCategories, I as GuildChannelsType, J as GuildLogsWebhookUrls, S as GuildModes, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Z as GuildTicketConfiguration, $ as GuildTimerTypes, am as RoulettePrize, an as RouletteSettings } from '../../index-Ba4fOyKx.js';
|
|
2
|
+
import './APIAutomaticRole.js';
|
|
2
3
|
import './APIBuff.js';
|
|
3
4
|
import './APIGuildPermissions.js';
|
|
4
5
|
import './APITimer.js';
|
|
@@ -68,6 +68,7 @@ var GuildChannelsType = /* @__PURE__ */ ((GuildChannelsType2) => {
|
|
|
68
68
|
GuildChannelsType2["BotWarningsChannel"] = "bot_warnings_channel";
|
|
69
69
|
GuildChannelsType2["UserWarningsChannel"] = "user_warnings_channel";
|
|
70
70
|
GuildChannelsType2["TicketRatingChannel"] = "ticket_rating_channel";
|
|
71
|
+
GuildChannelsType2["RouletteChannel"] = "roulette_channel";
|
|
71
72
|
return GuildChannelsType2;
|
|
72
73
|
})(GuildChannelsType || {});
|
|
73
74
|
var GuildTimerTypes = /* @__PURE__ */ ((GuildTimerTypes2) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { b as APIGuildBet,
|
|
1
|
+
export { b as APIGuildBet, r as BetChannelTypes, s as BetQueue } from '../../index-Ba4fOyKx.js';
|
|
2
2
|
import './APIBetChannel.js';
|
|
3
3
|
import './APIMessage.js';
|
|
4
4
|
import './APIPlayer.js';
|
|
5
5
|
import './APIAdvert.js';
|
|
6
|
+
import './APIAutomaticRole.js';
|
|
6
7
|
import './APIBaseChannel.js';
|
|
7
8
|
import './APIBuff.js';
|
|
8
9
|
import './APICode.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { c as APIGuildBetUser } from '../../index-
|
|
1
|
+
export { c as APIGuildBetUser } from '../../index-Ba4fOyKx.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
|
+
import './APIAutomaticRole.js';
|
|
3
4
|
import './APIBaseChannel.js';
|
|
4
5
|
import './APIBetChannel.js';
|
|
5
6
|
import './APIBuff.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { d as APIGuildGroupedChannel } from '../../index-
|
|
1
|
+
export { d as APIGuildGroupedChannel } from '../../index-Ba4fOyKx.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
|
+
import './APIAutomaticRole.js';
|
|
3
4
|
import './APIBaseChannel.js';
|
|
4
5
|
import './APIBetChannel.js';
|
|
5
6
|
import './APIBuff.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { e as APIGuildMatch,
|
|
1
|
+
export { e as APIGuildMatch, M as GuildMatchChannelsType, O as GuildMatchMessagesType, a8 as MatchSelection } from '../../index-Ba4fOyKx.js';
|
|
2
2
|
import './APIPlayer.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIMessage.js';
|
|
5
5
|
import './APIAdvert.js';
|
|
6
|
+
import './APIAutomaticRole.js';
|
|
6
7
|
import './APIBetChannel.js';
|
|
7
8
|
import './APIBuff.js';
|
|
8
9
|
import './APICode.js';
|
|
@@ -10,7 +10,6 @@ declare enum GuildPermissionsTypes {
|
|
|
10
10
|
ManageUsers = "manage_users",
|
|
11
11
|
ManageScores = "manage_scores",
|
|
12
12
|
ManageQueues = "manage_queues",
|
|
13
|
-
ViewQueueChannels = "view_queue_channels",
|
|
14
13
|
EnterQueueVoiceChannels = "enter_queue_voice_channels",
|
|
15
14
|
ViewQueueTextChannels = "view_queue_text_channels",
|
|
16
15
|
CreatePersonalizedMessages = "create_personalized_messages",
|
|
@@ -27,7 +26,10 @@ declare enum GuildPermissionsTypes {
|
|
|
27
26
|
CreateShop = "create_shop",
|
|
28
27
|
DeliverShopProduct = "deliver_shop_product",
|
|
29
28
|
CreateQueueFromAnyChannel = "create_queues_from_any_channel",
|
|
30
|
-
PunishMembers = "punish_members"
|
|
29
|
+
PunishMembers = "punish_members",
|
|
30
|
+
ChangeNick = "change_nick",
|
|
31
|
+
GiveWarnings = "give_warnings",
|
|
32
|
+
ManageBlacklist = "manage_blacklist"
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
export { type APIGuildPermissions, GuildPermissionsTypes, type Permission };
|
|
@@ -28,7 +28,6 @@ var GuildPermissionsTypes = /* @__PURE__ */ ((GuildPermissionsTypes2) => {
|
|
|
28
28
|
GuildPermissionsTypes2["ManageUsers"] = "manage_users";
|
|
29
29
|
GuildPermissionsTypes2["ManageScores"] = "manage_scores";
|
|
30
30
|
GuildPermissionsTypes2["ManageQueues"] = "manage_queues";
|
|
31
|
-
GuildPermissionsTypes2["ViewQueueChannels"] = "view_queue_channels";
|
|
32
31
|
GuildPermissionsTypes2["EnterQueueVoiceChannels"] = "enter_queue_voice_channels";
|
|
33
32
|
GuildPermissionsTypes2["ViewQueueTextChannels"] = "view_queue_text_channels";
|
|
34
33
|
GuildPermissionsTypes2["CreatePersonalizedMessages"] = "create_personalized_messages";
|
|
@@ -46,6 +45,9 @@ var GuildPermissionsTypes = /* @__PURE__ */ ((GuildPermissionsTypes2) => {
|
|
|
46
45
|
GuildPermissionsTypes2["DeliverShopProduct"] = "deliver_shop_product";
|
|
47
46
|
GuildPermissionsTypes2["CreateQueueFromAnyChannel"] = "create_queues_from_any_channel";
|
|
48
47
|
GuildPermissionsTypes2["PunishMembers"] = "punish_members";
|
|
48
|
+
GuildPermissionsTypes2["ChangeNick"] = "change_nick";
|
|
49
|
+
GuildPermissionsTypes2["GiveWarnings"] = "give_warnings";
|
|
50
|
+
GuildPermissionsTypes2["ManageBlacklist"] = "manage_blacklist";
|
|
49
51
|
return GuildPermissionsTypes2;
|
|
50
52
|
})(GuildPermissionsTypes || {});
|
|
51
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { f as APIGuildUser,
|
|
1
|
+
export { f as APIGuildUser, ai as Profile } from '../../index-Ba4fOyKx.js';
|
|
2
2
|
import './APIAdvert.js';
|
|
3
|
+
import './APIAutomaticRole.js';
|
|
3
4
|
import './APIBaseChannel.js';
|
|
4
5
|
import './APIBetChannel.js';
|
|
5
6
|
import './APIBuff.js';
|
|
@@ -14,6 +14,7 @@ declare enum LogEntryTypes {
|
|
|
14
14
|
UserCreations = "user_creations",
|
|
15
15
|
UserCredits = "user_credits",
|
|
16
16
|
RoulleteSpinsGained = "roullete_spins_gained",
|
|
17
|
+
RoulleteSpinsLost = "roullete_spins_removed",
|
|
17
18
|
RoulleteSpinsUsed = "roullete_spins_used",
|
|
18
19
|
ProductRedeemed = "shop_product_redeemed",
|
|
19
20
|
BetManaged = "bet_managed",
|
|
@@ -37,6 +37,7 @@ var LogEntryTypes = /* @__PURE__ */ ((LogEntryTypes2) => {
|
|
|
37
37
|
LogEntryTypes2["UserCreations"] = "user_creations";
|
|
38
38
|
LogEntryTypes2["UserCredits"] = "user_credits";
|
|
39
39
|
LogEntryTypes2["RoulleteSpinsGained"] = "roullete_spins_gained";
|
|
40
|
+
LogEntryTypes2["RoulleteSpinsLost"] = "roullete_spins_removed";
|
|
40
41
|
LogEntryTypes2["RoulleteSpinsUsed"] = "roullete_spins_used";
|
|
41
42
|
LogEntryTypes2["ProductRedeemed"] = "shop_product_redeemed";
|
|
42
43
|
LogEntryTypes2["BetManaged"] = "bet_managed";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import 'discord-api-types/v10';
|
|
2
|
-
export { h as APITicketPanel } from '../../index-
|
|
2
|
+
export { h as APITicketPanel } from '../../index-Ba4fOyKx.js';
|
|
3
3
|
import './APIAdvert.js';
|
|
4
|
+
import './APIAutomaticRole.js';
|
|
4
5
|
import './APIBaseChannel.js';
|
|
5
6
|
import './APIBetChannel.js';
|
|
6
7
|
import './APIBuff.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { APIAdvert } from './APIAdvert.js';
|
|
2
|
-
export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagesTypes, B as BETSTATUS,
|
|
2
|
+
export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagePayload, m as AutomaticMessagesTypes, B as BETSTATUS, n as Banner, p as BaseMatchModes, q as BaseMatchStatus, r as BetChannelTypes, s as BetQueue, C as Confirm, D as Daily, w as DailyCategories, I as GuildChannelsType, J as GuildLogsWebhookUrls, M as GuildMatchChannelsType, O as GuildMatchMessagesType, S as GuildModes, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Z as GuildTicketConfiguration, $ as GuildTimerTypes, a4 as LogMessage, a5 as Logs, a6 as MATCHSTATUS, a7 as MATCHTYPES, a8 as MatchSelection, ac as Optional, ad as OriginalChannel, ae as OriginalChannels, ai as Profile, aj as ProfileCard, am as RoulettePrize, an as RouletteSettings, ao as STATES, ar as StatusResponse, ax as UserAccessoryType } from '../../index-Ba4fOyKx.js';
|
|
3
|
+
export { APIAutomaticRole, AutomaticRolesTypes } from './APIAutomaticRole.js';
|
|
3
4
|
export { APIBaseChannel } from './APIBaseChannel.js';
|
|
4
5
|
export { APIBetChannel } from './APIBetChannel.js';
|
|
5
6
|
export { APIBuff } from './APIBuff.js';
|
package/dist/types/api/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __export(api_exports, {
|
|
|
28
28
|
module.exports = __toCommonJS(api_exports);
|
|
29
29
|
__reExport(api_exports, require("./APIAdvert"), module.exports);
|
|
30
30
|
__reExport(api_exports, require("./APIAutomaticMessage"), module.exports);
|
|
31
|
+
__reExport(api_exports, require("./APIAutomaticRole"), module.exports);
|
|
31
32
|
__reExport(api_exports, require("./APIBaseChannel"), module.exports);
|
|
32
33
|
__reExport(api_exports, require("./APIBetChannel"), module.exports);
|
|
33
34
|
__reExport(api_exports, require("./APIBuff"), module.exports);
|
|
@@ -99,6 +100,7 @@ var STATES = /* @__PURE__ */ ((STATES2) => {
|
|
|
99
100
|
UserAccessoryType,
|
|
100
101
|
...require("./APIAdvert"),
|
|
101
102
|
...require("./APIAutomaticMessage"),
|
|
103
|
+
...require("./APIAutomaticRole"),
|
|
102
104
|
...require("./APIBaseChannel"),
|
|
103
105
|
...require("./APIBetChannel"),
|
|
104
106
|
...require("./APIBuff"),
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagesTypes, B as BETSTATUS,
|
|
1
|
+
export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagePayload, m as AutomaticMessagesTypes, B as BETSTATUS, n as Banner, p as BaseMatchModes, q as BaseMatchStatus, r as BetChannelTypes, s as BetQueue, C as Confirm, D as Daily, w as DailyCategories, I as GuildChannelsType, J as GuildLogsWebhookUrls, M as GuildMatchChannelsType, O as GuildMatchMessagesType, S as GuildModes, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Z as GuildTicketConfiguration, $ as GuildTimerTypes, a4 as LogMessage, a5 as Logs, a6 as MATCHSTATUS, a7 as MATCHTYPES, a8 as MatchSelection, ac as Optional, ad as OriginalChannel, ae as OriginalChannels, ai as Profile, aj as ProfileCard, ak as RequestOptions, al as RestEvents, am as RoulettePrize, an as RouletteSettings, ao as STATES, ar as StatusResponse, ax as UserAccessoryType } from '../index-Ba4fOyKx.js';
|
|
2
2
|
export { APIAdvert } from './api/APIAdvert.js';
|
|
3
|
+
export { APIAutomaticRole, AutomaticRolesTypes } from './api/APIAutomaticRole.js';
|
|
3
4
|
export { APIBaseChannel } from './api/APIBaseChannel.js';
|
|
4
5
|
export { APIBetChannel } from './api/APIBetChannel.js';
|
|
5
6
|
export { APIBuff } from './api/APIBuff.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duque.edits/sdk",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"test": "ts-node --transpile-only tests/index.ts",
|
|
22
22
|
"match": "ts-node --transpile-only tests/match.ts",
|
|
23
|
+
"messages": "ts-node --transpile-only tests/messages.ts",
|
|
23
24
|
"guild": "ts-node --transpile-only tests/guild.ts",
|
|
24
25
|
"user": "ts-node --transpile-only tests/user.ts",
|
|
25
26
|
"bet": "ts-node --transpile-only tests/bet.ts",
|