discord.js 15.0.0-dev.1732881918-8efb72e76 → 15.0.0-dev.1733141132-5f0d28c0f
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 +5 -5
- package/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +1 -1
- package/src/managers/RoleManager.js +1 -1
- package/src/sharding/ShardClientUtil.js +1 -1
- package/src/sharding/ShardingManager.js +1 -1
- package/src/structures/ThreadOnlyChannel.js +1 -1
- package/typings/index.d.mts +1 -1
- package/typings/index.d.ts +1 -1
- package/typings/index.test-d.ts +1 -1
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.1733141132-5f0d28c0f",
|
|
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,9 +61,9 @@
|
|
|
61
61
|
"tslib": "^2.8.1",
|
|
62
62
|
"undici": "6.21.0",
|
|
63
63
|
"@discordjs/formatters": "^0.5.0",
|
|
64
|
+
"@discordjs/rest": "^2.4.0",
|
|
64
65
|
"@discordjs/util": "^1.1.1",
|
|
65
|
-
"@discordjs/ws": "^2.0.0"
|
|
66
|
-
"@discordjs/rest": "^2.4.0"
|
|
66
|
+
"@discordjs/ws": "^2.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"turbo": "^2.3.0",
|
|
82
82
|
"typescript": "~5.5.4",
|
|
83
83
|
"@discordjs/api-extractor": "^7.38.1",
|
|
84
|
-
"@discordjs/
|
|
85
|
-
"@discordjs/
|
|
84
|
+
"@discordjs/docgen": "^0.12.1",
|
|
85
|
+
"@discordjs/scripts": "^0.1.0"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=20"
|
|
@@ -8,7 +8,7 @@ module.exports = (client, { d: data }) => {
|
|
|
8
8
|
if (!guild) return;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Emitted when someone sends an effect, such as an emoji reaction, in a voice channel the client is connected to.
|
|
12
12
|
* @event Client#voiceChannelEffectSend
|
|
13
13
|
* @param {VoiceChannelEffect} voiceChannelEffect The sent voice channel effect
|
|
14
14
|
*/
|
|
@@ -48,7 +48,7 @@ class RoleManager extends CachedManager {
|
|
|
48
48
|
* Obtains a role from Discord, or the role cache if they're already available.
|
|
49
49
|
* @param {Snowflake} [id] The role's id
|
|
50
50
|
* @param {BaseFetchOptions} [options] Additional options for this fetch
|
|
51
|
-
* @returns {Promise
|
|
51
|
+
* @returns {Promise<Role|Collection<Snowflake, Role>>}
|
|
52
52
|
* @example
|
|
53
53
|
* // Fetch all roles from the guild
|
|
54
54
|
* message.guild.roles.fetch()
|
|
@@ -9,7 +9,7 @@ const { makeError, makePlainError } = require('../util/Util');
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Helper class for sharded clients spawned as a child process/worker, such as from a {@link ShardingManager}.
|
|
12
|
-
*
|
|
12
|
+
* Utilizes IPC to send and receive data to/from the master process and other shards.
|
|
13
13
|
*/
|
|
14
14
|
class ShardClientUtil {
|
|
15
15
|
constructor(client, mode) {
|
|
@@ -14,7 +14,7 @@ const { fetchRecommendedShardCount } = require('../util/Util');
|
|
|
14
14
|
* This is a utility class that makes multi-process sharding of a bot an easy and painless experience.
|
|
15
15
|
* It works by spawning a self-contained {@link ChildProcess} or {@link Worker} for each individual shard, each
|
|
16
16
|
* containing its own instance of your bot's {@link Client}. They all have a line of communication with the master
|
|
17
|
-
* process, and there are several useful methods that
|
|
17
|
+
* process, and there are several useful methods that utilize it in order to simplify tasks that are normally difficult
|
|
18
18
|
* with sharding. It can spawn a specific number of shards or the amount that Discord suggests for the bot, and takes a
|
|
19
19
|
* path to your main bot script to launch for each one.
|
|
20
20
|
* @extends {EventEmitter}
|
|
@@ -36,7 +36,7 @@ const { transformAPIGuildForumTag, transformAPIGuildDefaultReaction } = require(
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Represents symbols
|
|
39
|
+
* Represents symbols utilized by thread-only channels.
|
|
40
40
|
* @extends {GuildChannel}
|
|
41
41
|
* @implements {TextBasedChannel}
|
|
42
42
|
* @abstract
|
package/typings/index.d.mts
CHANGED
|
@@ -4491,7 +4491,7 @@ export class RoleManager extends CachedManager<Snowflake, Role, RoleResolvable>
|
|
|
4491
4491
|
public guild: Guild;
|
|
4492
4492
|
public get premiumSubscriberRole(): Role | null;
|
|
4493
4493
|
public botRoleFor(user: UserResolvable): Role | null;
|
|
4494
|
-
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role
|
|
4494
|
+
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role>;
|
|
4495
4495
|
public fetch(id?: undefined, options?: BaseFetchOptions): Promise<Collection<Snowflake, Role>>;
|
|
4496
4496
|
public create(options?: RoleCreateOptions): Promise<Role>;
|
|
4497
4497
|
public edit(role: RoleResolvable, options: RoleEditOptions): Promise<Role>;
|
package/typings/index.d.ts
CHANGED
|
@@ -4491,7 +4491,7 @@ export class RoleManager extends CachedManager<Snowflake, Role, RoleResolvable>
|
|
|
4491
4491
|
public guild: Guild;
|
|
4492
4492
|
public get premiumSubscriberRole(): Role | null;
|
|
4493
4493
|
public botRoleFor(user: UserResolvable): Role | null;
|
|
4494
|
-
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role
|
|
4494
|
+
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role>;
|
|
4495
4495
|
public fetch(id?: undefined, options?: BaseFetchOptions): Promise<Collection<Snowflake, Role>>;
|
|
4496
4496
|
public create(options?: RoleCreateOptions): Promise<Role>;
|
|
4497
4497
|
public edit(role: RoleResolvable, options: RoleEditOptions): Promise<Role>;
|
package/typings/index.test-d.ts
CHANGED
|
@@ -1700,7 +1700,7 @@ declare const messageManager: MessageManager;
|
|
|
1700
1700
|
declare const roleManager: RoleManager;
|
|
1701
1701
|
expectType<Promise<Collection<Snowflake, Role>>>(roleManager.fetch());
|
|
1702
1702
|
expectType<Promise<Collection<Snowflake, Role>>>(roleManager.fetch(undefined, {}));
|
|
1703
|
-
expectType<Promise<Role
|
|
1703
|
+
expectType<Promise<Role>>(roleManager.fetch('0'));
|
|
1704
1704
|
|
|
1705
1705
|
declare const guildEmojiManager: GuildEmojiManager;
|
|
1706
1706
|
expectType<Promise<Collection<Snowflake, GuildEmoji>>>(guildEmojiManager.fetch());
|