discord.js 15.0.0-dev.1740096733-0e7bdb072 → 15.0.0-dev.1740139512-c4fbe89f4
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.1740139512-c4fbe89f4",
|
|
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",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"undici": "6.21.1",
|
|
63
63
|
"@discordjs/collection": "^2.1.1",
|
|
64
64
|
"@discordjs/formatters": "^0.5.0",
|
|
65
|
-
"@discordjs/
|
|
65
|
+
"@discordjs/rest": "^2.4.0",
|
|
66
66
|
"@discordjs/ws": "^2.0.0",
|
|
67
|
-
"@discordjs/
|
|
67
|
+
"@discordjs/util": "^1.1.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"turbo": "^2.3.3",
|
|
83
83
|
"typescript": "~5.5.4",
|
|
84
84
|
"@discordjs/api-extractor": "^7.38.1",
|
|
85
|
-
"@discordjs/
|
|
86
|
-
"@discordjs/
|
|
85
|
+
"@discordjs/docgen": "^0.12.1",
|
|
86
|
+
"@discordjs/scripts": "^0.1.0"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=22.12.0"
|
|
@@ -237,13 +237,13 @@ class GuildChannelManager extends CachedManager {
|
|
|
237
237
|
async createWebhook({ channel, name, avatar, reason }) {
|
|
238
238
|
const id = this.resolveId(channel);
|
|
239
239
|
if (!id) throw new DiscordjsTypeError(ErrorCodes.InvalidType, 'channel', 'GuildChannelResolvable');
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
|
|
241
|
+
const resolvedImage = await resolveImage(avatar);
|
|
242
|
+
|
|
243
243
|
const data = await this.client.rest.post(Routes.channelWebhooks(id), {
|
|
244
244
|
body: {
|
|
245
245
|
name,
|
|
246
|
-
avatar,
|
|
246
|
+
avatar: resolvedImage,
|
|
247
247
|
},
|
|
248
248
|
reason,
|
|
249
249
|
});
|