discord.js 15.0.0-dev.1761912106-d06d8c080 → 15.0.0-dev.1762041719-06a75e80b

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.1761912106-d06d8c080",
4
+ "version": "15.0.0-dev.1762041719-06a75e80b",
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/collection": "^3.0.0-dev.1761912106-d06d8c080",
65
- "@discordjs/formatters": "^1.0.0-dev.1761912106-d06d8c080",
66
- "@discordjs/rest": "^3.0.0-dev.1761912106-d06d8c080",
67
- "@discordjs/util": "^2.0.0-dev.1761912106-d06d8c080",
68
- "@discordjs/ws": "^3.0.0-dev.1761912106-d06d8c080",
69
- "@discordjs/builders": "^2.0.0-dev.1761912106-d06d8c080"
64
+ "@discordjs/builders": "^2.0.0-dev.1762041719-06a75e80b",
65
+ "@discordjs/collection": "^3.0.0-dev.1762041719-06a75e80b",
66
+ "@discordjs/formatters": "^1.0.0-dev.1762041719-06a75e80b",
67
+ "@discordjs/rest": "^3.0.0-dev.1762041719-06a75e80b",
68
+ "@discordjs/util": "^2.0.0-dev.1762041719-06a75e80b",
69
+ "@discordjs/ws": "^3.0.0-dev.1762041719-06a75e80b"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -82,8 +82,8 @@
82
82
  "tsd": "^0.33.0",
83
83
  "turbo": "^2.5.8",
84
84
  "typescript": "~5.9.3",
85
- "@discordjs/docgen": "^0.12.1",
86
85
  "@discordjs/api-extractor": "^7.52.7",
86
+ "@discordjs/docgen": "^0.12.1",
87
87
  "@discordjs/scripts": "^0.1.0"
88
88
  },
89
89
  "engines": {
@@ -124,12 +124,12 @@ class GuildBanManager extends CachedManager {
124
124
  return this._add(data, cache);
125
125
  }
126
126
 
127
- async _fetchMany(options = {}) {
127
+ async _fetchMany({ cache, ...apiOptions } = {}) {
128
128
  const data = await this.client.rest.get(Routes.guildBans(this.guild.id), {
129
- query: makeURLSearchParams(options),
129
+ query: makeURLSearchParams(apiOptions),
130
130
  });
131
131
 
132
- return data.reduce((col, ban) => col.set(ban.user.id, this._add(ban, options.cache)), new Collection());
132
+ return data.reduce((col, ban) => col.set(ban.user.id, this._add(ban, cache)), new Collection());
133
133
  }
134
134
 
135
135
  /**
@@ -115,12 +115,12 @@ class MessageManager extends CachedManager {
115
115
  return this._add(data, cache);
116
116
  }
117
117
 
118
- async _fetchMany(options = {}) {
118
+ async _fetchMany({ cache, ...apiOptions } = {}) {
119
119
  const data = await this.client.rest.get(Routes.channelMessages(this.channel.id), {
120
- query: makeURLSearchParams(options),
120
+ query: makeURLSearchParams(apiOptions),
121
121
  });
122
122
 
123
- return data.reduce((_data, message) => _data.set(message.id, this._add(message, options.cache)), new Collection());
123
+ return data.reduce((_data, message) => _data.set(message.id, this._add(message, cache)), new Collection());
124
124
  }
125
125
 
126
126
  /**
@@ -162,11 +162,11 @@ class MessageManager extends CachedManager {
162
162
  * .then(messages => console.log(`Received ${messages.items.length} messages`))
163
163
  * .catch(console.error);
164
164
  */
165
- async fetchPins(options = {}) {
165
+ async fetchPins({ cache, ...apiOptions } = {}) {
166
166
  const data = await this.client.rest.get(Routes.channelMessagesPins(this.channel.id), {
167
167
  query: makeURLSearchParams({
168
- ...options,
169
- before: options.before && new Date(options.before).toISOString(),
168
+ ...apiOptions,
169
+ before: apiOptions.before && new Date(apiOptions.before).toISOString(),
170
170
  }),
171
171
  });
172
172
 
@@ -176,7 +176,7 @@ class MessageManager extends CachedManager {
176
176
  get pinnedAt() {
177
177
  return new Date(this.pinnedTimestamp);
178
178
  },
179
- message: this._add(item.message, options.cache),
179
+ message: this._add(item.message, cache),
180
180
  })),
181
181
  hasMore: data.has_more,
182
182
  };
@@ -47,7 +47,7 @@ const { ComponentType } = require('discord-api-types/v10');
47
47
  /**
48
48
  * @typedef {BaseComponentData} FileUploadComponentData
49
49
  * @property {string} customId The custom id of the file upload
50
- * @property {number} [minValues] The minimum number of files that can be uploaded (0-10)
50
+ * @property {number} [minValues] The minimum number of files that must be uploaded (0-10)
51
51
  * @property {number} [maxValues] The maximum number of files that can be uploaded (1-10)
52
52
  * @property {boolean} [required] Whether this component is required in modals
53
53
  */
@@ -57,7 +57,7 @@ const { ComponentType } = require('discord-api-types/v10');
57
57
  * @property {string} customId The custom id of the select menu
58
58
  * @property {boolean} [disabled] Whether the select menu is disabled or not
59
59
  * @property {number} [maxValues] The maximum amount of options that can be selected
60
- * @property {number} [minValues] The minimum amount of options that can be selected
60
+ * @property {number} [minValues] The minimum amount of options that must be selected
61
61
  * @property {string} [placeholder] The placeholder of the select menu
62
62
  * @property {boolean} [required] Whether this component is required in modals
63
63
  */