discord.js 15.0.0-dev.1747613680-8605fc81f → 15.0.0-dev.1748285936-78d512c34
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 +5 -5
- package/src/index.js +11 -1
- package/src/structures/interfaces/InteractionResponses.js +2 -2
- package/src/util/Util.js +11 -8
- package/typings/index.d.mts +274 -335
- package/typings/index.d.ts +274 -335
- package/typings/rawDataTypes.d.mts +0 -208
- package/typings/rawDataTypes.d.ts +0 -208
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.1748285936-78d512c34",
|
|
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",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@discordjs/collection": "^2.1.1",
|
|
66
66
|
"@discordjs/formatters": "^0.6.1",
|
|
67
67
|
"@discordjs/rest": "^2.5.0",
|
|
68
|
-
"@discordjs/
|
|
69
|
-
"@discordjs/
|
|
68
|
+
"@discordjs/util": "^1.1.1",
|
|
69
|
+
"@discordjs/ws": "^2.0.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"tslint": "6.1.3",
|
|
87
87
|
"turbo": "^2.5.2",
|
|
88
88
|
"typescript": "~5.8.3",
|
|
89
|
-
"@discordjs/api-extractor": "^7.52.7",
|
|
90
89
|
"@discordjs/docgen": "^0.12.1",
|
|
91
|
-
"@discordjs/scripts": "^0.1.0"
|
|
90
|
+
"@discordjs/scripts": "^0.1.0",
|
|
91
|
+
"@discordjs/api-extractor": "^7.52.7"
|
|
92
92
|
},
|
|
93
93
|
"engines": {
|
|
94
94
|
"node": ">=22.12.0"
|
package/src/index.js
CHANGED
|
@@ -45,7 +45,17 @@ exports.ThreadMemberFlagsBitField = require('./util/ThreadMemberFlagsBitField.js
|
|
|
45
45
|
exports.UserFlagsBitField = require('./util/UserFlagsBitField.js').UserFlagsBitField;
|
|
46
46
|
|
|
47
47
|
__exportStar(require('./util/DataResolver.js'), exports);
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
exports.cleanCodeBlockContent = require('./util/Util.js').cleanCodeBlockContent;
|
|
50
|
+
exports.cleanContent = require('./util/Util.js').cleanContent;
|
|
51
|
+
exports.discordSort = require('./util/Util.js').discordSort;
|
|
52
|
+
exports.fetchRecommendedShardCount = require('./util/Util.js').fetchRecommendedShardCount;
|
|
53
|
+
exports.flatten = require('./util/Util.js').flatten;
|
|
54
|
+
exports.parseEmoji = require('./util/Util.js').parseEmoji;
|
|
55
|
+
exports.parseWebhookURL = require('./util/Util.js').parseWebhookURL;
|
|
56
|
+
exports.resolveColor = require('./util/Util.js').resolveColor;
|
|
57
|
+
exports.resolveSKUId = require('./util/Util.js').resolveSKUId;
|
|
58
|
+
exports.verifyString = require('./util/Util.js').verifyString;
|
|
49
59
|
|
|
50
60
|
exports.version = require('../package.json').version;
|
|
51
61
|
|
|
@@ -237,7 +237,7 @@ class InteractionResponses {
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Updates the original message of the component on which the interaction was received on.
|
|
240
|
-
* @param {string|MessagePayload|InteractionUpdateOptions} options The options for the updated message
|
|
240
|
+
* @param {string|MessagePayload|InteractionUpdateOptions} [options] The options for the updated message
|
|
241
241
|
* @returns {Promise<InteractionCallbackResponse|undefined>}
|
|
242
242
|
* @example
|
|
243
243
|
* // Remove the components from the message
|
|
@@ -248,7 +248,7 @@ class InteractionResponses {
|
|
|
248
248
|
* .then(console.log)
|
|
249
249
|
* .catch(console.error);
|
|
250
250
|
*/
|
|
251
|
-
async update(options) {
|
|
251
|
+
async update(options = {}) {
|
|
252
252
|
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
|
|
253
253
|
|
|
254
254
|
let messagePayload;
|
package/src/util/Util.js
CHANGED
|
@@ -521,25 +521,28 @@ function resolveSKUId(resolvable) {
|
|
|
521
521
|
return null;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
|
|
524
|
+
// Public
|
|
525
|
+
exports.cleanCodeBlockContent = cleanCodeBlockContent;
|
|
526
|
+
exports.cleanContent = cleanContent;
|
|
527
|
+
exports.discordSort = discordSort;
|
|
525
528
|
exports.fetchRecommendedShardCount = fetchRecommendedShardCount;
|
|
529
|
+
exports.flatten = flatten;
|
|
526
530
|
exports.parseEmoji = parseEmoji;
|
|
531
|
+
exports.parseWebhookURL = parseWebhookURL;
|
|
532
|
+
exports.resolveColor = resolveColor;
|
|
533
|
+
exports.resolveSKUId = resolveSKUId;
|
|
534
|
+
exports.verifyString = verifyString;
|
|
535
|
+
|
|
536
|
+
// Private
|
|
527
537
|
exports.resolvePartialEmoji = resolvePartialEmoji;
|
|
528
538
|
exports.resolveGuildEmoji = resolveGuildEmoji;
|
|
529
539
|
exports.makeError = makeError;
|
|
530
540
|
exports.makePlainError = makePlainError;
|
|
531
541
|
exports.getSortableGroupTypes = getSortableGroupTypes;
|
|
532
542
|
exports.moveElementInArray = moveElementInArray;
|
|
533
|
-
exports.verifyString = verifyString;
|
|
534
|
-
exports.resolveColor = resolveColor;
|
|
535
|
-
exports.discordSort = discordSort;
|
|
536
543
|
exports.setPosition = setPosition;
|
|
537
544
|
exports.basename = basename;
|
|
538
|
-
exports.cleanContent = cleanContent;
|
|
539
|
-
exports.cleanCodeBlockContent = cleanCodeBlockContent;
|
|
540
|
-
exports.parseWebhookURL = parseWebhookURL;
|
|
541
545
|
exports.transformResolved = transformResolved;
|
|
542
|
-
exports.resolveSKUId = resolveSKUId;
|
|
543
546
|
|
|
544
547
|
// Fixes Circular
|
|
545
548
|
const { Attachment } = require('../structures/Attachment.js');
|