discord.js 15.0.0-dev.1761696117-94a9b4d03 → 15.0.0-dev.1761912106-d06d8c080

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.1761696117-94a9b4d03",
4
+ "version": "15.0.0-dev.1761912106-d06d8c080",
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.1761696117-94a9b4d03",
65
- "@discordjs/formatters": "^1.0.0-dev.1761696117-94a9b4d03",
66
- "@discordjs/rest": "^3.0.0-dev.1761696117-94a9b4d03",
67
- "@discordjs/collection": "^3.0.0-dev.1761696117-94a9b4d03",
68
- "@discordjs/util": "^2.0.0-dev.1761696117-94a9b4d03",
69
- "@discordjs/ws": "^3.0.0-dev.1761696117-94a9b4d03"
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"
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/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"
@@ -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
  /**
@@ -24,13 +24,6 @@ class GuildMember extends Base {
24
24
  */
25
25
  this.guild = guild;
26
26
 
27
- /**
28
- * The timestamp the member joined the guild at
29
- *
30
- * @type {?number}
31
- */
32
- this.joinedTimestamp = null;
33
-
34
27
  /**
35
28
  * The last timestamp this member started boosting the guild
36
29
  *
@@ -104,7 +97,17 @@ class GuildMember extends Base {
104
97
  this.banner ??= null;
105
98
  }
106
99
 
107
- if ('joined_at' in data) this.joinedTimestamp = Date.parse(data.joined_at);
100
+ if ('joined_at' in data) {
101
+ /**
102
+ * The timestamp the member joined the guild at
103
+ *
104
+ * @type {?number}
105
+ */
106
+ this.joinedTimestamp = data.joined_at && Date.parse(data.joined_at);
107
+ } else {
108
+ this.joinedTimestamp ??= null;
109
+ }
110
+
108
111
  if ('premium_since' in data) {
109
112
  this.premiumSinceTimestamp = data.premium_since ? Date.parse(data.premium_since) : null;
110
113
  }
@@ -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.