discord.js 15.0.0-dev.1747354440-33d8619a4 → 15.0.0-dev.1748174699-c1f5bb2fb

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.1747354440-33d8619a4",
4
+ "version": "15.0.0-dev.1748174699-c1f5bb2fb",
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.10.0",
62
62
  "tslib": "^2.8.1",
63
63
  "undici": "7.8.0",
64
+ "@discordjs/formatters": "^0.6.1",
64
65
  "@discordjs/builders": "^1.11.1",
65
- "@discordjs/util": "^1.1.1",
66
66
  "@discordjs/collection": "^2.1.1",
67
- "@discordjs/formatters": "^0.6.1",
68
67
  "@discordjs/rest": "^2.5.0",
69
- "@discordjs/ws": "^2.0.2"
68
+ "@discordjs/ws": "^2.0.2",
69
+ "@discordjs/util": "^1.1.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -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;
@@ -2317,9 +2317,9 @@ export class MessageComponentInteraction<Cached extends CacheType = CacheType> e
2317
2317
  public update(
2318
2318
  options: InteractionUpdateOptions & { withResponse: true },
2319
2319
  ): Promise<InteractionCallbackResponse<BooleanCache<Cached>>>;
2320
- public update(options: InteractionUpdateOptions & { withResponse: false }): Promise<undefined>;
2320
+ public update(options?: InteractionUpdateOptions & { withResponse: false }): Promise<undefined>;
2321
2321
  public update(
2322
- options: string | MessagePayload | InteractionUpdateOptions,
2322
+ options?: string | MessagePayload | InteractionUpdateOptions,
2323
2323
  ): Promise<InteractionCallbackResponse<BooleanCache<Cached>> | undefined>;
2324
2324
  public launchActivity(
2325
2325
  options: LaunchActivityOptions & { withResponse: true },
@@ -2317,9 +2317,9 @@ export class MessageComponentInteraction<Cached extends CacheType = CacheType> e
2317
2317
  public update(
2318
2318
  options: InteractionUpdateOptions & { withResponse: true },
2319
2319
  ): Promise<InteractionCallbackResponse<BooleanCache<Cached>>>;
2320
- public update(options: InteractionUpdateOptions & { withResponse: false }): Promise<undefined>;
2320
+ public update(options?: InteractionUpdateOptions & { withResponse: false }): Promise<undefined>;
2321
2321
  public update(
2322
- options: string | MessagePayload | InteractionUpdateOptions,
2322
+ options?: string | MessagePayload | InteractionUpdateOptions,
2323
2323
  ): Promise<InteractionCallbackResponse<BooleanCache<Cached>> | undefined>;
2324
2324
  public launchActivity(
2325
2325
  options: LaunchActivityOptions & { withResponse: true },