discord.js 15.0.0-dev.1761393709-2a5d99f0a → 15.0.0-dev.1761436923-56662ebad

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "discord.js",
4
- "version": "15.0.0-dev.1761393709-2a5d99f0a",
4
+ "version": "15.0.0-dev.1761436923-56662ebad",
5
5
  "description": "A powerful library for interacting with the Discord API",
6
6
  "main": "./src/index.js",
7
7
  "types": "./typings/index.d.ts",
@@ -61,12 +61,12 @@
61
61
  "magic-bytes.js": "^1.12.1",
62
62
  "tslib": "^2.8.1",
63
63
  "undici": "7.16.0",
64
- "@discordjs/builders": "^2.0.0-dev.1761393709-2a5d99f0a",
65
- "@discordjs/collection": "^3.0.0-dev.1761393709-2a5d99f0a",
66
- "@discordjs/rest": "^3.0.0-dev.1761393709-2a5d99f0a",
67
- "@discordjs/formatters": "^1.0.0-dev.1761393709-2a5d99f0a",
68
- "@discordjs/util": "^2.0.0-dev.1761393709-2a5d99f0a",
69
- "@discordjs/ws": "^3.0.0-dev.1761393709-2a5d99f0a"
64
+ "@discordjs/builders": "^2.0.0-dev.1761436923-56662ebad",
65
+ "@discordjs/formatters": "^1.0.0-dev.1761436923-56662ebad",
66
+ "@discordjs/rest": "^3.0.0-dev.1761436923-56662ebad",
67
+ "@discordjs/util": "^2.0.0-dev.1761436923-56662ebad",
68
+ "@discordjs/collection": "^3.0.0-dev.1761436923-56662ebad",
69
+ "@discordjs/ws": "^3.0.0-dev.1761436923-56662ebad"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -21,17 +21,17 @@ const getAttachment = lazy(() => require('./Attachment.js').Attachment);
21
21
  * @typedef {BaseModalData} SelectMenuModalData
22
22
  * @property {string} customId The custom id of the component
23
23
  * @property {string[]} values The values of the component
24
- * @property {Collection<string, GuildMember|APIGuildMember>} [members] The resolved members
25
- * @property {Collection<string, User|APIUser>} [users] The resolved users
26
- * @property {Collection<string, Role|APIRole>} [roles] The resolved roles
27
- * @property {Collection<string, BaseChannel|APIChannel>} [channels] The resolved channels
24
+ * @property {Collection<Snowflake, GuildMember|APIGuildMember>} [members] The resolved members
25
+ * @property {Collection<Snowflake, User|APIUser>} [users] The resolved users
26
+ * @property {Collection<Snowflake, Role|APIRole>} [roles] The resolved roles
27
+ * @property {Collection<Snowflake, BaseChannel|APIChannel>} [channels] The resolved channels
28
28
  */
29
29
 
30
30
  /**
31
31
  * @typedef {BaseModalData} FileUploadModalData
32
32
  * @property {string} customId The custom id of the file upload
33
- * @property {string[]} values The values of the file upload
34
- * @property {Collection<string, Attachment>} [attachments] The resolved attachments
33
+ * @property {Snowflake[]} values The values of the file upload
34
+ * @property {Collection<Snowflake, Attachment>} [attachments] The resolved attachments
35
35
  */
36
36
 
37
37
  /**
@@ -66,7 +66,6 @@ import {
66
66
  APIMessageTopLevelComponent,
67
67
  APIMessageUserSelectInteractionData,
68
68
  APIModalComponent,
69
- APIModalInteractionResponseCallbackComponent,
70
69
  APIModalInteractionResponseCallbackData,
71
70
  APIModalSubmitInteraction,
72
71
  APIOverwrite,
@@ -2583,14 +2582,15 @@ export interface SelectMenuModalData<Cached extends CacheType = CacheType>
2583
2582
  }
2584
2583
 
2585
2584
  export interface FileUploadModalData extends BaseModalData<ComponentType.FileUpload> {
2585
+ attachments: ReadonlyCollection<Snowflake, Attachment>;
2586
2586
  customId: string;
2587
- files: readonly Attachment[];
2587
+ values: readonly Snowflake[];
2588
2588
  }
2589
2589
 
2590
2590
  export type ModalData = FileUploadModalData | SelectMenuModalData | TextInputModalData;
2591
2591
 
2592
2592
  export interface LabelModalData extends BaseModalData<ComponentType.Label> {
2593
- component: readonly ModalData[];
2593
+ component: ModalData;
2594
2594
  }
2595
2595
  export interface ActionRowModalData extends BaseModalData<ComponentType.ActionRow> {
2596
2596
  components: readonly TextInputModalData[];
@@ -6859,7 +6859,7 @@ export interface FileUploadComponentData extends BaseComponentData {
6859
6859
  customId: string;
6860
6860
  maxValues?: number;
6861
6861
  minValues?: number;
6862
- required?: number;
6862
+ required?: boolean;
6863
6863
  type: ComponentType.FileUpload;
6864
6864
  }
6865
6865
 
@@ -66,7 +66,6 @@ import {
66
66
  APIMessageTopLevelComponent,
67
67
  APIMessageUserSelectInteractionData,
68
68
  APIModalComponent,
69
- APIModalInteractionResponseCallbackComponent,
70
69
  APIModalInteractionResponseCallbackData,
71
70
  APIModalSubmitInteraction,
72
71
  APIOverwrite,
@@ -2583,14 +2582,15 @@ export interface SelectMenuModalData<Cached extends CacheType = CacheType>
2583
2582
  }
2584
2583
 
2585
2584
  export interface FileUploadModalData extends BaseModalData<ComponentType.FileUpload> {
2585
+ attachments: ReadonlyCollection<Snowflake, Attachment>;
2586
2586
  customId: string;
2587
- files: readonly Attachment[];
2587
+ values: readonly Snowflake[];
2588
2588
  }
2589
2589
 
2590
2590
  export type ModalData = FileUploadModalData | SelectMenuModalData | TextInputModalData;
2591
2591
 
2592
2592
  export interface LabelModalData extends BaseModalData<ComponentType.Label> {
2593
- component: readonly ModalData[];
2593
+ component: ModalData;
2594
2594
  }
2595
2595
  export interface ActionRowModalData extends BaseModalData<ComponentType.ActionRow> {
2596
2596
  components: readonly TextInputModalData[];
@@ -6859,7 +6859,7 @@ export interface FileUploadComponentData extends BaseComponentData {
6859
6859
  customId: string;
6860
6860
  maxValues?: number;
6861
6861
  minValues?: number;
6862
- required?: number;
6862
+ required?: boolean;
6863
6863
  type: ComponentType.FileUpload;
6864
6864
  }
6865
6865