discord.js 15.0.0-dev.1732839163-5b125eeec → 15.0.0-dev.1732925554-f5445c810
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 +3 -3
- package/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +1 -1
- package/src/managers/ApplicationCommandManager.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/src/util/APITypes.js +0 -5
- package/typings/index.d.mts +2 -3
- package/typings/index.d.ts +2 -3
- 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.1732925554-f5445c810",
|
|
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",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"lodash.snakecase": "4.1.1",
|
|
61
61
|
"tslib": "^2.8.1",
|
|
62
62
|
"undici": "6.21.0",
|
|
63
|
+
"@discordjs/formatters": "^0.5.0",
|
|
63
64
|
"@discordjs/rest": "^2.4.0",
|
|
64
|
-
"@discordjs/util": "^1.1.1",
|
|
65
65
|
"@discordjs/ws": "^2.0.0",
|
|
66
|
-
"@discordjs/
|
|
66
|
+
"@discordjs/util": "^1.1.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@favware/cliff-jumper": "^4.1.0",
|
|
@@ -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
|
*/
|
|
@@ -82,7 +82,7 @@ class ApplicationCommandManager extends CachedManager {
|
|
|
82
82
|
* Options used to fetch Application Commands from Discord
|
|
83
83
|
* @typedef {BaseFetchOptions} FetchApplicationCommandOptions
|
|
84
84
|
* @property {Snowflake} [guildId] The guild's id to fetch commands for, for when the guild is not cached
|
|
85
|
-
* @property {
|
|
85
|
+
* @property {Locale} [locale] The locale to use when fetching this command
|
|
86
86
|
* @property {boolean} [withLocalizations] Whether to fetch all localization data
|
|
87
87
|
*/
|
|
88
88
|
|
|
@@ -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/src/util/APITypes.js
CHANGED
|
@@ -469,11 +469,6 @@
|
|
|
469
469
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/Locale}
|
|
470
470
|
*/
|
|
471
471
|
|
|
472
|
-
/**
|
|
473
|
-
* @external LocaleString
|
|
474
|
-
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#LocaleString}
|
|
475
|
-
*/
|
|
476
|
-
|
|
477
472
|
/**
|
|
478
473
|
* @external MessageActivityType
|
|
479
474
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/MessageActivityType}
|
package/typings/index.d.mts
CHANGED
|
@@ -101,7 +101,6 @@ import {
|
|
|
101
101
|
APIEmbedImage,
|
|
102
102
|
VideoQualityMode,
|
|
103
103
|
LocalizationMap,
|
|
104
|
-
LocaleString,
|
|
105
104
|
MessageActivityType,
|
|
106
105
|
APIAttachment,
|
|
107
106
|
APIChannel,
|
|
@@ -4492,7 +4491,7 @@ export class RoleManager extends CachedManager<Snowflake, Role, RoleResolvable>
|
|
|
4492
4491
|
public guild: Guild;
|
|
4493
4492
|
public get premiumSubscriberRole(): Role | null;
|
|
4494
4493
|
public botRoleFor(user: UserResolvable): Role | null;
|
|
4495
|
-
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role
|
|
4494
|
+
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role>;
|
|
4496
4495
|
public fetch(id?: undefined, options?: BaseFetchOptions): Promise<Collection<Snowflake, Role>>;
|
|
4497
4496
|
public create(options?: RoleCreateOptions): Promise<Role>;
|
|
4498
4497
|
public edit(role: RoleResolvable, options: RoleEditOptions): Promise<Role>;
|
|
@@ -5566,7 +5565,7 @@ export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji | Applicati
|
|
|
5566
5565
|
|
|
5567
5566
|
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
|
5568
5567
|
guildId?: Snowflake;
|
|
5569
|
-
locale?:
|
|
5568
|
+
locale?: Locale;
|
|
5570
5569
|
withLocalizations?: boolean;
|
|
5571
5570
|
}
|
|
5572
5571
|
|
package/typings/index.d.ts
CHANGED
|
@@ -101,7 +101,6 @@ import {
|
|
|
101
101
|
APIEmbedImage,
|
|
102
102
|
VideoQualityMode,
|
|
103
103
|
LocalizationMap,
|
|
104
|
-
LocaleString,
|
|
105
104
|
MessageActivityType,
|
|
106
105
|
APIAttachment,
|
|
107
106
|
APIChannel,
|
|
@@ -4492,7 +4491,7 @@ export class RoleManager extends CachedManager<Snowflake, Role, RoleResolvable>
|
|
|
4492
4491
|
public guild: Guild;
|
|
4493
4492
|
public get premiumSubscriberRole(): Role | null;
|
|
4494
4493
|
public botRoleFor(user: UserResolvable): Role | null;
|
|
4495
|
-
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role
|
|
4494
|
+
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role>;
|
|
4496
4495
|
public fetch(id?: undefined, options?: BaseFetchOptions): Promise<Collection<Snowflake, Role>>;
|
|
4497
4496
|
public create(options?: RoleCreateOptions): Promise<Role>;
|
|
4498
4497
|
public edit(role: RoleResolvable, options: RoleEditOptions): Promise<Role>;
|
|
@@ -5566,7 +5565,7 @@ export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji | Applicati
|
|
|
5566
5565
|
|
|
5567
5566
|
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
|
5568
5567
|
guildId?: Snowflake;
|
|
5569
|
-
locale?:
|
|
5568
|
+
locale?: Locale;
|
|
5570
5569
|
withLocalizations?: boolean;
|
|
5571
5570
|
}
|
|
5572
5571
|
|
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());
|