discord.js 15.0.0-dev.1761393709-2a5d99f0a → 15.0.0-dev.1761480106-ed143a6cd
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.
|
|
4
|
+
"version": "15.0.0-dev.1761480106-ed143a6cd",
|
|
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.
|
|
65
|
-
"@discordjs/
|
|
66
|
-
"@discordjs/
|
|
67
|
-
"@discordjs/
|
|
68
|
-
"@discordjs/util": "^2.0.0-dev.
|
|
69
|
-
"@discordjs/ws": "^3.0.0-dev.
|
|
64
|
+
"@discordjs/builders": "^2.0.0-dev.1761480106-ed143a6cd",
|
|
65
|
+
"@discordjs/formatters": "^1.0.0-dev.1761480106-ed143a6cd",
|
|
66
|
+
"@discordjs/collection": "^3.0.0-dev.1761480106-ed143a6cd",
|
|
67
|
+
"@discordjs/rest": "^3.0.0-dev.1761480106-ed143a6cd",
|
|
68
|
+
"@discordjs/util": "^2.0.0-dev.1761480106-ed143a6cd",
|
|
69
|
+
"@discordjs/ws": "^3.0.0-dev.1761480106-ed143a6cd"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"turbo": "^2.5.8",
|
|
84
84
|
"typescript": "~5.9.3",
|
|
85
85
|
"@discordjs/api-extractor": "^7.52.7",
|
|
86
|
-
"@discordjs/
|
|
87
|
-
"@discordjs/
|
|
86
|
+
"@discordjs/scripts": "^0.1.0",
|
|
87
|
+
"@discordjs/docgen": "^0.12.1"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=22.12.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<
|
|
25
|
-
* @property {Collection<
|
|
26
|
-
* @property {Collection<
|
|
27
|
-
* @property {Collection<
|
|
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 {
|
|
34
|
-
* @property {Collection<
|
|
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
|
/**
|
package/typings/index.d.mts
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
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?:
|
|
6862
|
+
required?: boolean;
|
|
6863
6863
|
type: ComponentType.FileUpload;
|
|
6864
6864
|
}
|
|
6865
6865
|
|
package/typings/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
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?:
|
|
6862
|
+
required?: boolean;
|
|
6863
6863
|
type: ComponentType.FileUpload;
|
|
6864
6864
|
}
|
|
6865
6865
|
|