disgroove 1.2.7 → 1.2.8-dev.1cb4c05

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.
Files changed (38) hide show
  1. package/dist/Client.d.ts +5 -1
  2. package/dist/Client.js +1 -0
  3. package/dist/Client.js.map +1 -1
  4. package/dist/constants.d.ts +23 -2
  5. package/dist/constants.js +25 -1
  6. package/dist/constants.js.map +1 -1
  7. package/dist/gateway/Shard.js +39 -0
  8. package/dist/gateway/Shard.js.map +1 -1
  9. package/dist/rest/Endpoints.d.ts +3 -0
  10. package/dist/rest/Endpoints.js +7 -1
  11. package/dist/rest/Endpoints.js.map +1 -1
  12. package/dist/rest/RequestsManager.js +1 -1
  13. package/dist/rest/RequestsManager.js.map +1 -1
  14. package/dist/structures/Application.d.ts +21 -1
  15. package/dist/structures/Application.js +61 -0
  16. package/dist/structures/Application.js.map +1 -1
  17. package/dist/structures/Channel.d.ts +1 -1
  18. package/dist/structures/Guild.d.ts +3 -2
  19. package/dist/structures/Guild.js +1 -0
  20. package/dist/structures/Guild.js.map +1 -1
  21. package/dist/structures/PartialApplication.d.ts +21 -1
  22. package/dist/structures/PartialApplication.js +61 -0
  23. package/dist/structures/PartialApplication.js.map +1 -1
  24. package/dist/types/channel.d.ts +2 -2
  25. package/dist/types/entitlements.d.ts +24 -0
  26. package/dist/types/entitlements.js +3 -0
  27. package/dist/types/entitlements.js.map +1 -0
  28. package/dist/types/gateway-events.d.ts +4 -4
  29. package/dist/types/index.d.ts +9 -7
  30. package/dist/types/index.js +9 -7
  31. package/dist/types/index.js.map +1 -1
  32. package/dist/types/interaction.d.ts +1 -0
  33. package/dist/types/message-components.d.ts +11 -0
  34. package/dist/types/sku.d.ts +18 -0
  35. package/dist/types/sku.js +3 -0
  36. package/dist/types/sku.js.map +1 -0
  37. package/dist/utils/Util.d.ts +2 -2
  38. package/package.json +1 -1
@@ -1,21 +1,23 @@
1
- export * from "./application";
1
+ export * from "./application-command";
2
2
  export * from "./application-role-connection-metadata";
3
+ export * from "./application";
3
4
  export * from "./audit-log";
4
5
  export * from "./auto-moderation";
5
6
  export * from "./channel";
6
7
  export * from "./emoji";
8
+ export * from "./entitlements";
7
9
  export * from "./gateway-events";
8
- export * from "./guild";
9
10
  export * from "./guild-scheduled-event";
10
11
  export * from "./guild-template";
12
+ export * from "./guild";
13
+ export * from "./interaction";
11
14
  export * from "./invite";
15
+ export * from "./message-components";
16
+ export * from "./role";
17
+ export * from "./sku";
12
18
  export * from "./stage-instance";
13
19
  export * from "./sticker";
20
+ export * from "./team";
14
21
  export * from "./user";
15
22
  export * from "./voice";
16
23
  export * from "./webhook";
17
- export * from "./role";
18
- export * from "./team";
19
- export * from "./application-command";
20
- export * from "./message-components";
21
- export * from "./interaction";
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yEAAuD;AACvD,8CAA4B;AAC5B,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB;AACxB,mDAAiC;AACjC,0CAAwB;AACxB,0DAAwC;AACxC,mDAAiC;AACjC,2CAAyB;AACzB,mDAAiC;AACjC,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,wDAAsC;AACtC,uDAAqC;AACrC,gDAA8B"}
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"}
@@ -107,6 +107,7 @@ export interface JSONMessageComponentData {
107
107
  customId: string;
108
108
  componentType: number;
109
109
  values?: Array<string>;
110
+ resolved?: JSONResolvedData;
110
111
  }
111
112
  export interface JSONModalSubmitData {
112
113
  customId: string;
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sku.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sku.js","sourceRoot":"","sources":["../../src/types/sku.ts"],"names":[],"mappings":""}
@@ -280,7 +280,7 @@ export declare class Util {
280
280
  applicationId?: string;
281
281
  managed?: boolean;
282
282
  parentId?: string | null;
283
- lastPinTimestamp?: number | null;
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: number | null | undefined;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "1.2.7",
3
+ "version": "1.2.8-dev.1cb4c05",
4
4
  "description": "An NPM package to interact with the Discord API",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",