@duque.edits/sdk 1.6.0 → 1.6.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-BlU-ryiZ.d.ts → index-BwmNIP2p.d.ts} +13 -16
- package/dist/index.d.ts +1 -1
- package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +1 -1
- package/dist/managers/base.d.ts +1 -1
- package/dist/managers/bet/GuildBetManager.d.ts +1 -1
- package/dist/managers/betuser/GuildBetUserManager.d.ts +1 -1
- package/dist/managers/buffer/BufferManager.d.ts +1 -1
- package/dist/managers/guild/GuildManager.d.ts +1 -1
- package/dist/managers/index.d.ts +1 -1
- package/dist/managers/logs/LogManager.d.ts +1 -1
- package/dist/managers/match/GuildMatchManager.d.ts +1 -1
- package/dist/managers/mediator/GuildMediatorManager.d.ts +1 -1
- package/dist/managers/message/MessagesManager.d.ts +1 -1
- package/dist/managers/minesgame/MinesGameManager.d.ts +1 -1
- package/dist/managers/permission/GuildPermissionManager.d.ts +1 -1
- package/dist/managers/player/PlayerManager.d.ts +1 -1
- package/dist/managers/product/ProductManager.d.ts +1 -1
- package/dist/managers/shop/ShopManager.d.ts +1 -1
- package/dist/managers/ticket/TicketManager.d.ts +1 -1
- package/dist/managers/ticketpanel/TicketPanelManager.d.ts +1 -1
- package/dist/managers/tournament/TournamentManager.d.ts +1 -1
- package/dist/managers/user/GuildUserManager.d.ts +1 -1
- package/dist/managers/vipmember/VipMemberManager.d.ts +1 -1
- package/dist/rest/REST.d.ts +1 -1
- package/dist/rest/index.d.ts +1 -1
- package/dist/structures/automaticmessage/AutomaticMessage.d.ts +1 -1
- package/dist/structures/bet/GuildBet.d.ts +1 -1
- package/dist/structures/betuser/GuildBetUser.d.ts +1 -1
- package/dist/structures/guild/Guild.d.ts +1 -1
- package/dist/structures/guild/Guild.js +2 -3
- package/dist/structures/index.d.ts +1 -1
- package/dist/structures/logentry/LogEntry.d.ts +1 -1
- package/dist/structures/match/GuildMatch.d.ts +1 -1
- package/dist/structures/mediator/GuildMediator.d.ts +1 -1
- package/dist/structures/minesgame/MinesGame.d.ts +1 -1
- package/dist/structures/product/Product.d.ts +1 -1
- package/dist/structures/shop/Shop.d.ts +1 -1
- package/dist/structures/ticket/Ticket.d.ts +1 -1
- package/dist/structures/ticketpanel/TicketPanel.d.ts +1 -1
- package/dist/structures/tournament/Tournament.d.ts +1 -1
- package/dist/structures/user/GuildUser.d.ts +1 -1
- package/dist/structures/vipmember/VipMember.d.ts +1 -1
- package/dist/types/RestTypes.d.ts +1 -1
- package/dist/types/api/APIAutomaticMessage.d.ts +1 -1
- package/dist/types/api/APIGuild.d.ts +1 -1
- package/dist/types/api/APIGuild.js +1 -0
- package/dist/types/api/APIGuildBet.d.ts +1 -1
- package/dist/types/api/APIGuildBetUser.d.ts +1 -1
- package/dist/types/api/APIGuildGroupedChannel.d.ts +1 -1
- package/dist/types/api/APIGuildMatch.d.ts +1 -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 +1 -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 +1 -1
- package/dist/types/api/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
|
@@ -99,6 +99,7 @@ interface RouletteSettings {
|
|
|
99
99
|
tertiary_color: string;
|
|
100
100
|
text_color: string;
|
|
101
101
|
prizes: RoulettePrize[];
|
|
102
|
+
custom_banner: string;
|
|
102
103
|
}
|
|
103
104
|
declare enum AutomaticMessagesTypes {
|
|
104
105
|
MatchStarted = "match_started",
|
|
@@ -129,7 +130,8 @@ declare enum GuildChannelsType {
|
|
|
129
130
|
BettingChannel = "betting",
|
|
130
131
|
BotWarningsChannel = "bot_warnings_channel",
|
|
131
132
|
UserWarningsChannel = "user_warnings_channel",
|
|
132
|
-
TicketRatingChannel = "ticket_rating_channel"
|
|
133
|
+
TicketRatingChannel = "ticket_rating_channel",
|
|
134
|
+
RouletteChannel = "roulette_channel"
|
|
133
135
|
}
|
|
134
136
|
interface APIGuild {
|
|
135
137
|
/** Guild's id */
|
|
@@ -205,6 +207,13 @@ declare enum GuildTimerTypes {
|
|
|
205
207
|
Giveaway = "giveaway"
|
|
206
208
|
}
|
|
207
209
|
|
|
210
|
+
interface AutomaticMessagePayload {
|
|
211
|
+
content?: string;
|
|
212
|
+
embeds?: Partial<APIEmbed>[];
|
|
213
|
+
components?: any[];
|
|
214
|
+
attachments?: any[];
|
|
215
|
+
flags?: number;
|
|
216
|
+
}
|
|
208
217
|
interface APIAutomaticMessage {
|
|
209
218
|
id: string;
|
|
210
219
|
_id: string;
|
|
@@ -213,13 +222,7 @@ interface APIAutomaticMessage {
|
|
|
213
222
|
channel_ids: string[];
|
|
214
223
|
type: AutomaticMessagesTypes;
|
|
215
224
|
guild_id: string;
|
|
216
|
-
message:
|
|
217
|
-
content: string;
|
|
218
|
-
embeds: APIEmbed[];
|
|
219
|
-
components: any[];
|
|
220
|
-
attachments: any[];
|
|
221
|
-
flags: number;
|
|
222
|
-
};
|
|
225
|
+
message: AutomaticMessagePayload;
|
|
223
226
|
interval_ms: number;
|
|
224
227
|
createdAt: Date;
|
|
225
228
|
updatedAt: Date;
|
|
@@ -971,13 +974,7 @@ declare class AutomaticMessage {
|
|
|
971
974
|
name: string;
|
|
972
975
|
admin_id: string;
|
|
973
976
|
channel_ids: string[];
|
|
974
|
-
message:
|
|
975
|
-
content: string;
|
|
976
|
-
embeds: APIEmbed[];
|
|
977
|
-
components: any[];
|
|
978
|
-
attachments: any[];
|
|
979
|
-
flags: number;
|
|
980
|
-
};
|
|
977
|
+
message: AutomaticMessagePayload;
|
|
981
978
|
guild_id: string;
|
|
982
979
|
interval_ms: number;
|
|
983
980
|
createdAt: Date;
|
|
@@ -1718,4 +1715,4 @@ declare class GuildTicketManager {
|
|
|
1718
1715
|
set(data: APIGuildTicket | GuildTicket | APIGuildTicket[]): GuildTicket | Collection<string, GuildTicket>;
|
|
1719
1716
|
}
|
|
1720
1717
|
|
|
1721
|
-
export {
|
|
1718
|
+
export { GuildTimerTypes as $, type APIAutomaticMessage as A, BETSTATUS as B, type Confirm as C, type Daily as D, GuildBetUser as E, type FetchOptions$2 as F, Guild as G, GuildBetUserManager as H, GuildChannelsType as I, type GuildLogsWebhookUrls as J, GuildManager as K, GuildMatch as L, GuildMatchChannelsType as M, GuildMatchManager as N, GuildMatchMessagesType as O, GuildMediator as P, GuildMediatorManager as Q, REST as R, type GuildModes as S, GuildPermissionManager as T, type GuildPrices as U, type GuildScores as V, type GuildStatus as W, GuildStatusEnum as X, GuildTicket as Y, type GuildTicketConfiguration as Z, GuildTicketManager as _, type APIGuild as a, GuildUser as a0, GuildUserManager as a1, LogEntry as a2, LogManager as a3, type LogMessage as a4, type Logs as a5, MATCHSTATUS as a6, MATCHTYPES as a7, type MatchSelection as a8, MessagesManager as a9, ProductManager as aA, MinesGame as aa, MinesGameManager as ab, type Optional as ac, type OriginalChannel as ad, type OriginalChannels as ae, PlayerManager as af, type PlayerOption as ag, Product as ah, type Profile as ai, type ProfileCard as aj, type RequestOptions as ak, type RestEvents as al, type RoulettePrize as am, type RouletteSettings as an, STATES as ao, Shop as ap, ShopManager as aq, type StatusResponse as ar, type Structure as as, TicketPanel as at, TicketPanelManager as au, Tournament as av, TournamentManager as aw, UserAccessoryType as ax, VipMember as ay, VipMemberManager as az, type APIGuildBet as b, type APIGuildBetUser as c, type APIGuildGroupedChannel as d, type APIGuildMatch as e, type APIGuildUser as f, type APITicketCategory as g, type APITicketPanel as h, type Accessory as i, AutomaticMessage as j, AutomaticMessageManager as k, type AutomaticMessagePayload as l, AutomaticMessagesTypes as m, type Banner as n, BaseManager as o, type BaseMatchModes as p, type BaseMatchStatus as q, BetChannelTypes as r, type BetQueue as s, BufferManager as t, type BufferMatch as u, type BufferTicket as v, type DailyCategories as w, type FetchReturn as x, GuildBet as y, GuildBetManager as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, j as AutomaticMessage, k as AutomaticMessageManager, 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, j as AutomaticMessage, k as AutomaticMessageManager, l as AutomaticMessagePayload, m as AutomaticMessagesTypes, B as BETSTATUS, n as Banner, o as BaseManager, p as BaseMatchModes, q as BaseMatchStatus, r as BetChannelTypes, s as BetQueue, t as BufferManager, u as BufferMatch, v as BufferTicket, C as Confirm, D as Daily, w as DailyCategories, F as FetchOptions, x as FetchReturn, G as Guild, y as GuildBet, z as GuildBetManager, E as GuildBetUser, H as GuildBetUserManager, I as GuildChannelsType, J as GuildLogsWebhookUrls, K as GuildManager, L as GuildMatch, M as GuildMatchChannelsType, N as GuildMatchManager, O as GuildMatchMessagesType, P as GuildMediator, Q as GuildMediatorManager, S as GuildModes, T as GuildPermissionManager, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Y as GuildTicket, Z as GuildTicketConfiguration, _ as GuildTicketManager, $ as GuildTimerTypes, a0 as GuildUser, a1 as GuildUserManager, a2 as LogEntry, a3 as LogManager, a4 as LogMessage, a5 as Logs, a6 as MATCHSTATUS, a7 as MATCHTYPES, a8 as MatchSelection, a9 as MessagesManager, aa as MinesGame, ab as MinesGameManager, ac as Optional, ad as OriginalChannel, ae as OriginalChannels, af as PlayerManager, ag as PlayerOption, ah as Product, ai as Profile, aj as ProfileCard, R as REST, ak as RequestOptions, al as RestEvents, am as RoulettePrize, an as RouletteSettings, ao as STATES, ap as Shop, aq as ShopManager, ar as StatusResponse, as as Structure, at as TicketPanel, au as TicketPanelManager, av as Tournament, aw as TournamentManager, ax as UserAccessoryType, ay as VipMember, az as VipMemberManager } from './index-BwmNIP2p.js';
|
|
2
2
|
export { Collection } from './structures/Collection.js';
|
|
3
3
|
export { APIEndpoint, APIEndpoints } from './rest/APIEndpoints.js';
|
|
4
4
|
export { Routes } from './rest/Routes.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as AutomaticMessageManager } from '../../index-
|
|
1
|
+
export { k as AutomaticMessageManager } from '../../index-BwmNIP2p.js';
|
|
2
2
|
import '../../structures/Collection.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
package/dist/managers/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FetchOptions,
|
|
1
|
+
export { F as FetchOptions, z as GuildBetManager } from '../../index-BwmNIP2p.js';
|
|
2
2
|
import '../../structures/Collection.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../structures/Collection.js';
|
|
2
|
-
export {
|
|
2
|
+
export { t as BufferManager, u as BufferMatch, v as BufferTicket } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import '../../types/api/APIGuildTicket.js';
|
|
4
4
|
import '../../types/api/APIAdvert.js';
|
|
5
5
|
import '../../types/api/APIBaseChannel.js';
|
package/dist/managers/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as AutomaticMessageManager,
|
|
1
|
+
export { k as AutomaticMessageManager, o as BaseManager, t as BufferManager, u as BufferMatch, v as BufferTicket, F as FetchOptions, x as FetchReturn, z as GuildBetManager, H as GuildBetUserManager, K as GuildManager, N as GuildMatchManager, Q as GuildMediatorManager, T as GuildPermissionManager, _ as GuildTicketManager, a1 as GuildUserManager, a3 as LogManager, a9 as MessagesManager, ab as MinesGameManager, af as PlayerManager, ag as PlayerOption, aq as ShopManager, as as Structure, au as TicketPanelManager, aw as TournamentManager, az as VipMemberManager } from '../index-BwmNIP2p.js';
|
|
2
2
|
import '../types/api/APIAdvert.js';
|
|
3
3
|
import '../types/api/APIBaseChannel.js';
|
|
4
4
|
import '../types/api/APIBetChannel.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { T as GuildPermissionManager } from '../../index-BwmNIP2p.js';
|
|
2
2
|
import '../../types/api/APIGuildPermissions.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../types/api/APIPlayer.js';
|
|
2
|
-
export {
|
|
2
|
+
export { af as PlayerManager, ag as PlayerOption, as as Structure } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import '../../structures/Collection.js';
|
|
4
4
|
import '../../types/api/APIAdvert.js';
|
|
5
5
|
import '../../types/api/APIBaseChannel.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { x as FetchReturn, au as TicketPanelManager } from '../../index-BwmNIP2p.js';
|
|
2
2
|
import '../../structures/Collection.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../structures/Collection.js';
|
|
2
|
-
export {
|
|
2
|
+
export { a1 as GuildUserManager } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
5
5
|
import '../../types/api/APIBetChannel.js';
|
package/dist/rest/REST.d.ts
CHANGED
package/dist/rest/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { APIEndpoint, APIEndpoints } from './APIEndpoints.js';
|
|
2
2
|
export { Routes } from './Routes.js';
|
|
3
|
-
export { R as REST } from '../index-
|
|
3
|
+
export { R as REST } from '../index-BwmNIP2p.js';
|
|
4
4
|
import '../structures/Collection.js';
|
|
5
5
|
import '../types/api/APIAdvert.js';
|
|
6
6
|
import '../types/api/APIBaseChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'discord-api-types/v10';
|
|
2
|
-
export { j as AutomaticMessage } from '../../index-
|
|
2
|
+
export { j as AutomaticMessage } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
5
5
|
import '../../types/api/APIBetChannel.js';
|
|
@@ -361,7 +361,8 @@ class Guild {
|
|
|
361
361
|
secondary_color: !data.default ? data.secondary_color || this.roulette_settings.secondary_color || "#1A1A1A" : "#1A1A1A",
|
|
362
362
|
tertiary_color: !data.default ? data.tertiary_color || this.roulette_settings.tertiary_color || "#2D2D2D" : "#2D2D2D",
|
|
363
363
|
text_color: !data.default ? data.text_color || this.roulette_settings.text_color || "#ffffff" : "#ffffff",
|
|
364
|
-
prizes: data.prizes || this.roulette_settings.prizes || []
|
|
364
|
+
prizes: data.prizes || this.roulette_settings.prizes || [],
|
|
365
|
+
custom_banner: data.custom_banner || this.roulette_settings.custom_banner || ""
|
|
365
366
|
}
|
|
366
367
|
};
|
|
367
368
|
return this.update(_data);
|
|
@@ -674,8 +675,6 @@ update_fn = function(data) {
|
|
|
674
675
|
}
|
|
675
676
|
continue;
|
|
676
677
|
}
|
|
677
|
-
if (key === "buffs") {
|
|
678
|
-
}
|
|
679
678
|
}
|
|
680
679
|
if ("buffs" in data) {
|
|
681
680
|
this.buffs = new import_Collection.Collection();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as AutomaticMessage, G as Guild,
|
|
1
|
+
export { j as AutomaticMessage, G as Guild, y as GuildBet, E as GuildBetUser, L as GuildMatch, P as GuildMediator, Y as GuildTicket, a0 as GuildUser, a2 as LogEntry, aa as MinesGame, ah as Product, ap as Shop, at as TicketPanel, av as Tournament, ay as VipMember } from '../index-BwmNIP2p.js';
|
|
2
2
|
export { Collection } from './Collection.js';
|
|
3
3
|
import '../types/api/APIAdvert.js';
|
|
4
4
|
import '../types/api/APIBaseChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'discord-api-types/v10';
|
|
2
|
-
export {
|
|
2
|
+
export { ap as Shop } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import '../../types/api/APIGuildShop.js';
|
|
4
4
|
import '../../types/api/APIAdvert.js';
|
|
5
5
|
import '../../types/api/APIBaseChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'discord-api-types/v10';
|
|
2
|
-
export {
|
|
2
|
+
export { at as TicketPanel } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import '../../types/api/APIAdvert.js';
|
|
4
4
|
import '../../types/api/APIBaseChannel.js';
|
|
5
5
|
import '../../types/api/APIBetChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../structures/Collection.js';
|
|
2
|
-
export {
|
|
2
|
+
export { ak as RequestOptions, al as RestEvents } from '../index-BwmNIP2p.js';
|
|
3
3
|
import './api/APIAdvert.js';
|
|
4
4
|
import './api/APIBaseChannel.js';
|
|
5
5
|
import './api/APIBetChannel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'discord-api-types/v10';
|
|
2
|
-
export { A as APIAutomaticMessage } from '../../index-
|
|
2
|
+
export { A as APIAutomaticMessage, l as AutomaticMessagePayload } from '../../index-BwmNIP2p.js';
|
|
3
3
|
import './APIAdvert.js';
|
|
4
4
|
import './APIBaseChannel.js';
|
|
5
5
|
import './APIBetChannel.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
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-BwmNIP2p.js';
|
|
2
2
|
import './APIBuff.js';
|
|
3
3
|
import './APIGuildPermissions.js';
|
|
4
4
|
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,4 +1,4 @@
|
|
|
1
|
-
export { b as APIGuildBet,
|
|
1
|
+
export { b as APIGuildBet, r as BetChannelTypes, s as BetQueue } from '../../index-BwmNIP2p.js';
|
|
2
2
|
import './APIBetChannel.js';
|
|
3
3
|
import './APIMessage.js';
|
|
4
4
|
import './APIPlayer.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as APIGuildMatch,
|
|
1
|
+
export { e as APIGuildMatch, M as GuildMatchChannelsType, O as GuildMatchMessagesType, a8 as MatchSelection } from '../../index-BwmNIP2p.js';
|
|
2
2
|
import './APIPlayer.js';
|
|
3
3
|
import './APIBaseChannel.js';
|
|
4
4
|
import './APIMessage.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:
|
|
@@ -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,5 +1,5 @@
|
|
|
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-BwmNIP2p.js';
|
|
3
3
|
export { APIBaseChannel } from './APIBaseChannel.js';
|
|
4
4
|
export { APIBetChannel } from './APIBetChannel.js';
|
|
5
5
|
export { APIBuff } from './APIBuff.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-BwmNIP2p.js';
|
|
2
2
|
export { APIAdvert } from './api/APIAdvert.js';
|
|
3
3
|
export { APIBaseChannel } from './api/APIBaseChannel.js';
|
|
4
4
|
export { APIBetChannel } from './api/APIBetChannel.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.3",
|
|
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",
|