discord.js 15.0.0-dev.1758931308-9201243f3 → 15.0.0-dev.1759363313-f510b5ffa
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 +9 -9
- package/src/structures/ApplicationCommand.js +12 -12
- package/src/structures/ApplicationRoleConnectionMetadata.js +2 -2
- package/src/structures/ClientApplication.js +2 -2
- package/src/structures/ModalComponentResolver.js +1 -1
- package/src/util/APITypes.js +10 -0
- package/src/util/ThreadMemberFlagsBitField.js +3 -2
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.1759363313-f510b5ffa",
|
|
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.11.0",
|
|
64
|
-
"@discordjs/
|
|
65
|
-
"@discordjs/
|
|
66
|
-
"@discordjs/formatters": "^1.0.0-dev.
|
|
67
|
-
"@discordjs/rest": "^3.0.0-dev.
|
|
68
|
-
"@discordjs/ws": "^3.0.0-dev.
|
|
69
|
-
"@discordjs/util": "^2.0.0-dev.
|
|
64
|
+
"@discordjs/collection": "^3.0.0-dev.1759363313-f510b5ffa",
|
|
65
|
+
"@discordjs/builders": "^2.0.0-dev.1759363313-f510b5ffa",
|
|
66
|
+
"@discordjs/formatters": "^1.0.0-dev.1759363313-f510b5ffa",
|
|
67
|
+
"@discordjs/rest": "^3.0.0-dev.1759363313-f510b5ffa",
|
|
68
|
+
"@discordjs/ws": "^3.0.0-dev.1759363313-f510b5ffa",
|
|
69
|
+
"@discordjs/util": "^2.0.0-dev.1759363313-f510b5ffa"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"tsd": "^0.33.0",
|
|
83
83
|
"turbo": "^2.5.6",
|
|
84
84
|
"typescript": "~5.9.2",
|
|
85
|
+
"@discordjs/docgen": "^0.12.1",
|
|
85
86
|
"@discordjs/api-extractor": "^7.52.7",
|
|
86
|
-
"@discordjs/scripts": "^0.1.0"
|
|
87
|
-
"@discordjs/docgen": "^0.12.1"
|
|
87
|
+
"@discordjs/scripts": "^0.1.0"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=22.12.0"
|
|
@@ -83,7 +83,7 @@ class ApplicationCommand extends Base {
|
|
|
83
83
|
/**
|
|
84
84
|
* The name localizations for this command
|
|
85
85
|
*
|
|
86
|
-
* @type {?
|
|
86
|
+
* @type {?LocalizationMap}
|
|
87
87
|
*/
|
|
88
88
|
this.nameLocalizations = data.name_localizations;
|
|
89
89
|
} else {
|
|
@@ -114,7 +114,7 @@ class ApplicationCommand extends Base {
|
|
|
114
114
|
/**
|
|
115
115
|
* The description localizations for this command
|
|
116
116
|
*
|
|
117
|
-
* @type {?
|
|
117
|
+
* @type {?LocalizationMap}
|
|
118
118
|
*/
|
|
119
119
|
this.descriptionLocalizations = data.description_localizations;
|
|
120
120
|
} else {
|
|
@@ -239,11 +239,11 @@ class ApplicationCommand extends Base {
|
|
|
239
239
|
* @typedef {Object} ApplicationCommandData
|
|
240
240
|
* @property {string} name The name of the command, must be in all lowercase if type is
|
|
241
241
|
* {@link ApplicationCommandType.ChatInput}
|
|
242
|
-
* @property {
|
|
242
|
+
* @property {LocalizationMap} [nameLocalizations] The localizations for the command name
|
|
243
243
|
* @property {string} description The description of the command,
|
|
244
244
|
* if type is {@link ApplicationCommandType.ChatInput} or {@link ApplicationCommandType.PrimaryEntryPoint}
|
|
245
245
|
* @property {boolean} [nsfw] Whether the command is age-restricted
|
|
246
|
-
* @property {
|
|
246
|
+
* @property {LocalizationMap} [descriptionLocalizations] The localizations for the command description,
|
|
247
247
|
* if type is {@link ApplicationCommandType.ChatInput} or {@link ApplicationCommandType.PrimaryEntryPoint}
|
|
248
248
|
* @property {ApplicationCommandType} [type=ApplicationCommandType.ChatInput] The type of the command
|
|
249
249
|
* @property {ApplicationCommandOptionData[]} [options] Options for the command
|
|
@@ -265,9 +265,9 @@ class ApplicationCommand extends Base {
|
|
|
265
265
|
* @typedef {Object} ApplicationCommandOptionData
|
|
266
266
|
* @property {ApplicationCommandOptionType} type The type of the option
|
|
267
267
|
* @property {string} name The name of the option
|
|
268
|
-
* @property {
|
|
268
|
+
* @property {LocalizationMap} [nameLocalizations] The name localizations for the option
|
|
269
269
|
* @property {string} description The description of the option
|
|
270
|
-
* @property {
|
|
270
|
+
* @property {LocalizationMap} [descriptionLocalizations] The description localizations for the option
|
|
271
271
|
* @property {boolean} [autocomplete] Whether the autocomplete interaction is enabled for a
|
|
272
272
|
* {@link ApplicationCommandOptionType.String}, {@link ApplicationCommandOptionType.Integer} or
|
|
273
273
|
* {@link ApplicationCommandOptionType.Number} option
|
|
@@ -289,7 +289,7 @@ class ApplicationCommand extends Base {
|
|
|
289
289
|
/**
|
|
290
290
|
* @typedef {Object} ApplicationCommandOptionChoiceData
|
|
291
291
|
* @property {string} name The name of the choice
|
|
292
|
-
* @property {
|
|
292
|
+
* @property {LocalizationMap} [nameLocalizations] The localized names for this choice
|
|
293
293
|
* @property {string|number} value The value of the choice
|
|
294
294
|
*/
|
|
295
295
|
|
|
@@ -323,7 +323,7 @@ class ApplicationCommand extends Base {
|
|
|
323
323
|
/**
|
|
324
324
|
* Edits the localized names of this ApplicationCommand
|
|
325
325
|
*
|
|
326
|
-
* @param {
|
|
326
|
+
* @param {LocalizationMap} nameLocalizations The new localized names for the command
|
|
327
327
|
* @returns {Promise<ApplicationCommand>}
|
|
328
328
|
* @example
|
|
329
329
|
* // Edit the name localizations of this command
|
|
@@ -351,7 +351,7 @@ class ApplicationCommand extends Base {
|
|
|
351
351
|
/**
|
|
352
352
|
* Edits the localized descriptions of this ApplicationCommand
|
|
353
353
|
*
|
|
354
|
-
* @param {
|
|
354
|
+
* @param {LocalizationMap} descriptionLocalizations The new localized descriptions for the command
|
|
355
355
|
* @returns {Promise<ApplicationCommand>}
|
|
356
356
|
* @example
|
|
357
357
|
* // Edit the description localizations of this command
|
|
@@ -568,10 +568,10 @@ class ApplicationCommand extends Base {
|
|
|
568
568
|
* @typedef {Object} ApplicationCommandOption
|
|
569
569
|
* @property {ApplicationCommandOptionType} type The type of the option
|
|
570
570
|
* @property {string} name The name of the option
|
|
571
|
-
* @property {
|
|
571
|
+
* @property {LocalizationMap} [nameLocalizations] The localizations for the option name
|
|
572
572
|
* @property {string} [nameLocalized] The localized name for this option
|
|
573
573
|
* @property {string} description The description of the option
|
|
574
|
-
* @property {
|
|
574
|
+
* @property {LocalizationMap} [descriptionLocalizations] The localizations for the option description
|
|
575
575
|
* @property {string} [descriptionLocalized] The localized description for this option
|
|
576
576
|
* @property {boolean} [required] Whether the option is required
|
|
577
577
|
* @property {boolean} [autocomplete] Whether the autocomplete interaction is enabled for a
|
|
@@ -597,7 +597,7 @@ class ApplicationCommand extends Base {
|
|
|
597
597
|
* @typedef {Object} ApplicationCommandOptionChoice
|
|
598
598
|
* @property {string} name The name of the choice
|
|
599
599
|
* @property {?string} nameLocalized The localized name of the choice in the provided locale, if any
|
|
600
|
-
* @property {?
|
|
600
|
+
* @property {?LocalizationMap} [nameLocalizations] The localized names for this choice
|
|
601
601
|
* @property {string|number} value The value of the choice
|
|
602
602
|
*/
|
|
603
603
|
|
|
@@ -15,7 +15,7 @@ class ApplicationRoleConnectionMetadata {
|
|
|
15
15
|
/**
|
|
16
16
|
* The name localizations for this metadata field
|
|
17
17
|
*
|
|
18
|
-
* @type {?
|
|
18
|
+
* @type {?LocalizationMap}
|
|
19
19
|
*/
|
|
20
20
|
this.nameLocalizations = data.name_localizations ?? null;
|
|
21
21
|
|
|
@@ -29,7 +29,7 @@ class ApplicationRoleConnectionMetadata {
|
|
|
29
29
|
/**
|
|
30
30
|
* The description localizations for this metadata field
|
|
31
31
|
*
|
|
32
|
-
* @type {?
|
|
32
|
+
* @type {?LocalizationMap}
|
|
33
33
|
*/
|
|
34
34
|
this.descriptionLocalizations = data.description_localizations ?? null;
|
|
35
35
|
|
|
@@ -407,9 +407,9 @@ class ClientApplication extends Application {
|
|
|
407
407
|
*
|
|
408
408
|
* @typedef {Object} ApplicationRoleConnectionMetadataEditOptions
|
|
409
409
|
* @property {string} name The name of the metadata field
|
|
410
|
-
* @property {?
|
|
410
|
+
* @property {?LocalizationMap} [nameLocalizations] The name localizations for the metadata field
|
|
411
411
|
* @property {string} description The description of the metadata field
|
|
412
|
-
* @property {?
|
|
412
|
+
* @property {?LocalizationMap} [descriptionLocalizations] The description localizations for the metadata field
|
|
413
413
|
* @property {string} key The dictionary key of the metadata field
|
|
414
414
|
* @property {ApplicationRoleConnectionMetadataType} type The type of the metadata field
|
|
415
415
|
*/
|
|
@@ -104,7 +104,7 @@ class ModalComponentResolver {
|
|
|
104
104
|
* Gets the value of a text input component
|
|
105
105
|
*
|
|
106
106
|
* @param {string} customId The custom id of the text input component
|
|
107
|
-
* @returns {
|
|
107
|
+
* @returns {string}
|
|
108
108
|
*/
|
|
109
109
|
getTextInputValue(customId) {
|
|
110
110
|
return this._getTypedComponent(customId, [ComponentType.TextInput]).value;
|
package/src/util/APITypes.js
CHANGED
|
@@ -539,6 +539,11 @@
|
|
|
539
539
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/Locale}
|
|
540
540
|
*/
|
|
541
541
|
|
|
542
|
+
/**
|
|
543
|
+
* @external LocalizationMap
|
|
544
|
+
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#LocalizationMap}
|
|
545
|
+
*/
|
|
546
|
+
|
|
542
547
|
/**
|
|
543
548
|
* @external MessageActivityType
|
|
544
549
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/MessageActivityType}
|
|
@@ -654,6 +659,11 @@
|
|
|
654
659
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/ThreadAutoArchiveDuration}
|
|
655
660
|
*/
|
|
656
661
|
|
|
662
|
+
/**
|
|
663
|
+
* @external ThreadMemberFlags
|
|
664
|
+
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/ThreadMemberFlags}
|
|
665
|
+
*/
|
|
666
|
+
|
|
657
667
|
/**
|
|
658
668
|
* @external UserFlags
|
|
659
669
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/UserFlags}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/check-values */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
const { ThreadMemberFlags } = require('discord-api-types/v10');
|
|
4
5
|
const { BitField } = require('./BitField.js');
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -12,10 +13,10 @@ class ThreadMemberFlagsBitField extends BitField {
|
|
|
12
13
|
/**
|
|
13
14
|
* Numeric thread member flags. There are currently no bitflags relevant to bots for this.
|
|
14
15
|
*
|
|
15
|
-
* @type {
|
|
16
|
+
* @type {ThreadMemberFlags}
|
|
16
17
|
* @memberof ThreadMemberFlagsBitField
|
|
17
18
|
*/
|
|
18
|
-
static Flags =
|
|
19
|
+
static Flags = ThreadMemberFlags;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/**
|