disgroove 1.2.7 → 1.2.8-dev.53eb61e
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/Client.d.ts +5 -1
- package/dist/Client.js +1 -0
- package/dist/Client.js.map +1 -1
- package/dist/constants.d.ts +21 -2
- package/dist/constants.js +23 -1
- package/dist/constants.js.map +1 -1
- package/dist/gateway/Shard.js +39 -0
- package/dist/gateway/Shard.js.map +1 -1
- package/dist/rest/Endpoints.d.ts +3 -0
- package/dist/rest/Endpoints.js +7 -1
- package/dist/rest/Endpoints.js.map +1 -1
- package/dist/rest/RequestsManager.js +1 -1
- package/dist/rest/RequestsManager.js.map +1 -1
- package/dist/structures/Application.d.ts +21 -1
- package/dist/structures/Application.js +46 -0
- package/dist/structures/Application.js.map +1 -1
- package/dist/structures/Channel.d.ts +1 -1
- package/dist/structures/Guild.d.ts +3 -2
- package/dist/structures/Guild.js +1 -0
- package/dist/structures/Guild.js.map +1 -1
- package/dist/structures/PartialApplication.d.ts +21 -1
- package/dist/structures/PartialApplication.js +46 -0
- package/dist/structures/PartialApplication.js.map +1 -1
- package/dist/types/channel.d.ts +2 -2
- package/dist/types/entitlements.d.ts +24 -0
- package/dist/types/entitlements.js +3 -0
- package/dist/types/entitlements.js.map +1 -0
- package/dist/types/gateway-events.d.ts +4 -4
- package/dist/types/index.d.ts +9 -7
- package/dist/types/index.js +9 -7
- package/dist/types/index.js.map +1 -1
- package/dist/types/interaction.d.ts +1 -0
- package/dist/types/message-components.d.ts +11 -0
- package/dist/types/sku.d.ts +18 -0
- package/dist/types/sku.js +3 -0
- package/dist/types/sku.js.map +1 -0
- package/dist/utils/Util.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/index.js
CHANGED
|
@@ -14,25 +14,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./application"), exports);
|
|
17
|
+
__exportStar(require("./application-command"), exports);
|
|
18
18
|
__exportStar(require("./application-role-connection-metadata"), exports);
|
|
19
|
+
__exportStar(require("./application"), exports);
|
|
19
20
|
__exportStar(require("./audit-log"), exports);
|
|
20
21
|
__exportStar(require("./auto-moderation"), exports);
|
|
21
22
|
__exportStar(require("./channel"), exports);
|
|
22
23
|
__exportStar(require("./emoji"), exports);
|
|
24
|
+
__exportStar(require("./entitlements"), exports);
|
|
23
25
|
__exportStar(require("./gateway-events"), exports);
|
|
24
|
-
__exportStar(require("./guild"), exports);
|
|
25
26
|
__exportStar(require("./guild-scheduled-event"), exports);
|
|
26
27
|
__exportStar(require("./guild-template"), exports);
|
|
28
|
+
__exportStar(require("./guild"), exports);
|
|
29
|
+
__exportStar(require("./interaction"), exports);
|
|
27
30
|
__exportStar(require("./invite"), exports);
|
|
31
|
+
__exportStar(require("./message-components"), exports);
|
|
32
|
+
__exportStar(require("./role"), exports);
|
|
33
|
+
__exportStar(require("./sku"), exports);
|
|
28
34
|
__exportStar(require("./stage-instance"), exports);
|
|
29
35
|
__exportStar(require("./sticker"), exports);
|
|
36
|
+
__exportStar(require("./team"), exports);
|
|
30
37
|
__exportStar(require("./user"), exports);
|
|
31
38
|
__exportStar(require("./voice"), exports);
|
|
32
39
|
__exportStar(require("./webhook"), exports);
|
|
33
|
-
__exportStar(require("./role"), exports);
|
|
34
|
-
__exportStar(require("./team"), exports);
|
|
35
|
-
__exportStar(require("./application-command"), exports);
|
|
36
|
-
__exportStar(require("./message-components"), exports);
|
|
37
|
-
__exportStar(require("./interaction"), exports);
|
|
38
40
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yEAAuD;AACvD,gDAA8B;AAC9B,8CAA4B;AAC5B,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB;AACxB,iDAA+B;AAC/B,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,0CAAwB;AACxB,gDAA8B;AAC9B,2CAAyB;AACzB,uDAAqC;AACrC,yCAAuB;AACvB,wCAAsB;AACtB,mDAAiC;AACjC,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B"}
|
|
@@ -17,6 +17,7 @@ export interface RawSelectMenu {
|
|
|
17
17
|
options?: Array<RawSelectOption>;
|
|
18
18
|
channel_types?: Array<ChannelTypes>;
|
|
19
19
|
placeholder?: string;
|
|
20
|
+
default_values?: Array<RawDefaultValue>;
|
|
20
21
|
min_values?: number;
|
|
21
22
|
max_values?: number;
|
|
22
23
|
disabled?: boolean;
|
|
@@ -29,6 +30,11 @@ export interface RawSelectOption {
|
|
|
29
30
|
emoji?: Partial<Pick<RawEmoji, "name" | "id" | "animated">>;
|
|
30
31
|
default?: boolean;
|
|
31
32
|
}
|
|
33
|
+
/** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
|
|
34
|
+
export interface RawDefaultValue {
|
|
35
|
+
id: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}
|
|
32
38
|
/** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure */
|
|
33
39
|
export interface RawTextInput {
|
|
34
40
|
type: ComponentTypes.TextInput;
|
|
@@ -88,6 +94,7 @@ export interface JSONSelectMenu {
|
|
|
88
94
|
options?: Array<JSONSelectOption>;
|
|
89
95
|
channelTypes?: Array<ChannelTypes>;
|
|
90
96
|
placeholder?: string;
|
|
97
|
+
defaultValues?: Array<JSONDefaultValue>;
|
|
91
98
|
minValues?: number;
|
|
92
99
|
maxValues?: number;
|
|
93
100
|
disabled?: boolean;
|
|
@@ -99,6 +106,10 @@ export interface JSONSelectOption {
|
|
|
99
106
|
emoji?: Partial<Pick<JSONEmoji, "name" | "id" | "animated">>;
|
|
100
107
|
default?: boolean;
|
|
101
108
|
}
|
|
109
|
+
export interface JSONDefaultValue {
|
|
110
|
+
id: string;
|
|
111
|
+
type: string;
|
|
112
|
+
}
|
|
102
113
|
export interface JSONTextInput {
|
|
103
114
|
type: ComponentTypes.TextInput;
|
|
104
115
|
customId: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SKUFlags, SKUTypes } from "../constants";
|
|
2
|
+
/** https://discord.com/developers/docs/monetization/skus#sku-object-sku-structure */
|
|
3
|
+
export interface RawSKU {
|
|
4
|
+
id: string;
|
|
5
|
+
type: SKUTypes;
|
|
6
|
+
application_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
flags: SKUFlags;
|
|
10
|
+
}
|
|
11
|
+
export interface JSONSKU {
|
|
12
|
+
id: string;
|
|
13
|
+
type: SKUTypes;
|
|
14
|
+
applicationId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
flags: SKUFlags;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sku.js","sourceRoot":"","sources":["../../src/types/sku.ts"],"names":[],"mappings":""}
|
package/dist/utils/Util.d.ts
CHANGED
|
@@ -280,7 +280,7 @@ export declare class Util {
|
|
|
280
280
|
applicationId?: string;
|
|
281
281
|
managed?: boolean;
|
|
282
282
|
parentId?: string | null;
|
|
283
|
-
lastPinTimestamp?:
|
|
283
|
+
lastPinTimestamp?: string | null;
|
|
284
284
|
rtcRegion?: string | null;
|
|
285
285
|
videoQualityMode?: number;
|
|
286
286
|
messageCount?: number;
|
|
@@ -338,7 +338,7 @@ export declare class Util {
|
|
|
338
338
|
application_id: string | undefined;
|
|
339
339
|
managed: boolean | undefined;
|
|
340
340
|
parent_id: string | null | undefined;
|
|
341
|
-
last_pin_timestamp:
|
|
341
|
+
last_pin_timestamp: string | null | undefined;
|
|
342
342
|
rtc_region: string | null | undefined;
|
|
343
343
|
video_quality_mode: number | undefined;
|
|
344
344
|
message_count: number | undefined;
|