discord.js 15.0.0-dev.1752797696-43a995bef → 15.0.0-dev.1753185967-90b369294

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/README.md CHANGED
@@ -112,7 +112,7 @@ client.login(TOKEN);
112
112
  - [Guide][guide] ([source][guide-source])
113
113
  Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
114
114
  - [discord.js Discord server][discord]
115
- - [Discord API Discord server][discord-api]
115
+ - [Discord Developers Discord server][discord-developers]
116
116
  - [GitHub][source]
117
117
  - [npm][npm]
118
118
  - [Related libraries][related-libs]
@@ -138,7 +138,7 @@ If you don't understand something in the documentation, you are experiencing pro
138
138
  [guide-source]: https://github.com/discordjs/guide
139
139
  [guide-update]: https://discordjs.guide/additional-info/changes-in-v14.html
140
140
  [discord]: https://discord.gg/djs
141
- [discord-api]: https://discord.gg/discord-api
141
+ [discord-developers]: https://discord.gg/discord-developers
142
142
  [source]: https://github.com/discordjs/discord.js/tree/main/packages/discord.js
143
143
  [npm]: https://www.npmjs.com/package/discord.js
144
144
  [related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
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.1752797696-43a995bef",
4
+ "version": "15.0.0-dev.1753185967-90b369294",
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.11.0",
64
- "@discordjs/builders": "^1.11.1",
65
64
  "@discordjs/collection": "^2.1.1",
66
- "@discordjs/rest": "^2.5.0",
65
+ "@discordjs/formatters": "^0.6.1",
67
66
  "@discordjs/util": "^1.1.1",
67
+ "@discordjs/rest": "^2.5.0",
68
68
  "@discordjs/ws": "^2.0.2",
69
- "@discordjs/formatters": "^0.6.1"
69
+ "@discordjs/builders": "^1.11.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -83,8 +83,8 @@
83
83
  "turbo": "^2.5.4",
84
84
  "typescript": "~5.8.3",
85
85
  "@discordjs/api-extractor": "^7.52.7",
86
- "@discordjs/scripts": "^0.1.0",
87
- "@discordjs/docgen": "^0.12.1"
86
+ "@discordjs/docgen": "^0.12.1",
87
+ "@discordjs/scripts": "^0.1.0"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=22.12.0"
@@ -61,7 +61,7 @@ class RoleManager extends CachedManager {
61
61
  * @example
62
62
  * // Fetch a single role
63
63
  * message.guild.roles.fetch('222078108977594368')
64
- * .then(role => console.log(`The role color is: ${role.color}`))
64
+ * .then(role => console.log(`The role color is: ${role.colors.primaryColor}`))
65
65
  * .catch(console.error);
66
66
  */
67
67
  async fetch(id, { cache = true, force = false } = {}) {
@@ -293,7 +293,7 @@ class GuildMember extends Base {
293
293
  * @readonly
294
294
  */
295
295
  get displayColor() {
296
- return this.roles.color?.color ?? 0;
296
+ return this.roles.color?.colors.primaryColor ?? 0;
297
297
  }
298
298
 
299
299
  /**
@@ -206,7 +206,7 @@ class Role extends Base {
206
206
  * @readonly
207
207
  */
208
208
  get hexColor() {
209
- return `#${this.color.toString(16).padStart(6, '0')}`;
209
+ return `#${this.colors.primaryColor.toString(16).padStart(6, '0')}`;
210
210
  }
211
211
 
212
212
  /**