feat: deprecated shard

This commit is contained in:
Elysia
2024-09-17 11:54:28 +07:00
parent 51cff59e91
commit 94f90e8aaf
5 changed files with 9 additions and 0 deletions

3
typings/index.d.ts vendored
View File

@@ -2868,6 +2868,7 @@ export interface ShardEventTypes {
message: [message: any];
}
/** @deprecated This will be removed in the next major version */
export class Shard extends EventEmitter {
private constructor(manager: ShardingManager, id: number);
private _evals: Map<string, Promise<unknown>>;
@@ -2906,6 +2907,7 @@ export class Shard extends EventEmitter {
): this;
}
/** @deprecated This will be removed in the next major version */
export class ShardClientUtil {
private constructor(client: Client, mode: ShardingManagerMode);
private _handleMessage(message: unknown): void;
@@ -2937,6 +2939,7 @@ export class ShardClientUtil {
public static shardIdForGuildId(guildId: Snowflake, shardCount: number): number;
}
/** @deprecated This will be removed in the next major version */
export class ShardingManager extends EventEmitter {
public constructor(file: string, options?: ShardingManagerOptions);
private _performOnShards(method: string, args: unknown[]): Promise<unknown[]>;