discord.js 15.0.0-dev.1761868919-178c9cb34 → 15.0.0-dev.1761955338-f26a5ed86

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.1761868919-178c9cb34",
4
+ "version": "15.0.0-dev.1761955338-f26a5ed86",
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",
@@ -55,26 +55,26 @@
55
55
  "dependencies": {
56
56
  "@sapphire/snowflake": "3.5.5",
57
57
  "@vladfrangu/async_event_emitter": "^2.4.7",
58
- "discord-api-types": "^0.38.30",
58
+ "discord-api-types": "^0.38.31",
59
59
  "fast-deep-equal": "3.1.3",
60
60
  "lodash.snakecase": "4.1.1",
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.1761868919-178c9cb34",
65
- "@discordjs/formatters": "^1.0.0-dev.1761868919-178c9cb34",
66
- "@discordjs/rest": "^3.0.0-dev.1761868919-178c9cb34",
67
- "@discordjs/collection": "^3.0.0-dev.1761868919-178c9cb34",
68
- "@discordjs/ws": "^3.0.0-dev.1761868919-178c9cb34",
69
- "@discordjs/util": "^2.0.0-dev.1761868919-178c9cb34"
64
+ "@discordjs/builders": "^2.0.0-dev.1761955338-f26a5ed86",
65
+ "@discordjs/collection": "^3.0.0-dev.1761955338-f26a5ed86",
66
+ "@discordjs/formatters": "^1.0.0-dev.1761955338-f26a5ed86",
67
+ "@discordjs/rest": "^3.0.0-dev.1761955338-f26a5ed86",
68
+ "@discordjs/util": "^2.0.0-dev.1761955338-f26a5ed86",
69
+ "@discordjs/ws": "^3.0.0-dev.1761955338-f26a5ed86"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
73
- "@types/node": "^22.18.8",
73
+ "@types/node": "^22.18.13",
74
74
  "cross-env": "^10.1.0",
75
- "eslint": "^9.37.0",
76
- "eslint-config-neon": "^0.2.7",
77
- "eslint-formatter-compact": "^8.40.0",
75
+ "eslint": "^9.38.0",
76
+ "eslint-config-neon": "^0.2.9",
77
+ "eslint-formatter-compact": "^9.0.1",
78
78
  "eslint-formatter-pretty": "^7.0.0",
79
79
  "eslint-plugin-import": "^2.32.0",
80
80
  "eslint-plugin-jsdoc": "^54.7.0",
@@ -82,9 +82,9 @@
82
82
  "tsd": "^0.33.0",
83
83
  "turbo": "^2.5.8",
84
84
  "typescript": "~5.9.3",
85
- "@discordjs/api-extractor": "^7.52.7",
86
85
  "@discordjs/docgen": "^0.12.1",
87
- "@discordjs/scripts": "^0.1.0"
86
+ "@discordjs/scripts": "^0.1.0",
87
+ "@discordjs/api-extractor": "^7.52.7"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=22.12.0"
@@ -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
  };
@@ -98,6 +98,7 @@ class ClientApplication extends Application {
98
98
  * Scopes and permissions regarding the installation context
99
99
  */
100
100
 
101
+ /* eslint-disable jsdoc/valid-types */
101
102
  /**
102
103
  * The application's supported installation context data.
103
104
  *
@@ -107,6 +108,7 @@ class ClientApplication extends Application {
107
108
  * @property {IntegrationTypesConfigurationContext} [1] Scopes and permissions
108
109
  * regarding the user-installation context
109
110
  */
111
+ /* eslint-enable jsdoc/valid-types */
110
112
 
111
113
  if ('integration_types_config' in data) {
112
114
  /**
@@ -202,6 +202,7 @@ exports.UndeletableMessageTypes = [
202
202
  MessageType.ThreadStarterMessage,
203
203
  ];
204
204
 
205
+ /* eslint-disable jsdoc/valid-types */
205
206
  /**
206
207
  * A mapping between sticker formats and their respective image formats.
207
208
  * - {@link StickerFormatType.PNG} -> {@link ImageFormat.PNG}
@@ -221,6 +222,7 @@ exports.StickerFormatExtensionMap = {
221
222
  [StickerFormatType.Lottie]: ImageFormat.Lottie,
222
223
  [StickerFormatType.GIF]: ImageFormat.GIF,
223
224
  };
225
+ /* eslint-enable jsdoc/valid-types */
224
226
 
225
227
  /**
226
228
  * Holographic color values for role styling.