discord.js 15.0.0-dev.1762344096-4c18a89c2 → 15.0.0-dev.1762689715-c85f18c1e
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.
|
|
4
|
+
"version": "15.0.0-dev.1762689715-c85f18c1e",
|
|
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/
|
|
65
|
-
"@discordjs/
|
|
66
|
-
"@discordjs/rest": "3.0.0-dev.
|
|
67
|
-
"@discordjs/
|
|
68
|
-
"@discordjs/
|
|
69
|
-
"@discordjs/
|
|
64
|
+
"@discordjs/builders": "2.0.0-dev.1762689715-c85f18c1e",
|
|
65
|
+
"@discordjs/collection": "3.0.0-dev.1762689715-c85f18c1e",
|
|
66
|
+
"@discordjs/rest": "3.0.0-dev.1762689715-c85f18c1e",
|
|
67
|
+
"@discordjs/util": "2.0.0-dev.1762689715-c85f18c1e",
|
|
68
|
+
"@discordjs/formatters": "1.0.0-dev.1762689715-c85f18c1e",
|
|
69
|
+
"@discordjs/ws": "3.0.0-dev.1762689715-c85f18c1e"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -35,7 +35,15 @@ class GuildEmojiRoleManager extends DataManager {
|
|
|
35
35
|
* @readonly
|
|
36
36
|
*/
|
|
37
37
|
get cache() {
|
|
38
|
-
|
|
38
|
+
const cache = new Collection();
|
|
39
|
+
for (const roleId of this.emoji._roles) {
|
|
40
|
+
const role = this.guild.roles.cache.get(roleId);
|
|
41
|
+
if (role !== undefined) {
|
|
42
|
+
cache.set(roleId, role);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return cache;
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
/**
|
|
@@ -37,8 +37,17 @@ class GuildMemberRoleManager extends DataManager {
|
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
39
|
get cache() {
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const cache = new Collection();
|
|
41
|
+
cache.set(this.guild.id, this.guild.roles.everyone);
|
|
42
|
+
|
|
43
|
+
for (const roleId of this.member._roles) {
|
|
44
|
+
const role = this.guild.roles.cache.get(roleId);
|
|
45
|
+
if (role !== undefined) {
|
|
46
|
+
cache.set(roleId, role);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return cache;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
/**
|