status-sharding
Version:
Welcome to Status Sharding! This package is designed to provide an efficient and flexible solution for sharding Discord bots, allowing you to scale your bot across multiple processes or workers.
13 lines (12 loc) • 479 B
TypeScript
import { ClusterManager } from '../core/clusterManager';
import { ReClusterOptions } from '../types';
/** Handles re-clustering for the cluster manager. */
export declare class ReClusterManager {
private readonly manager;
/** If re-clustering is in progress. */
private inProgress;
/** Creates an instance of ReClusterManager. */
constructor(manager: ClusterManager);
/** Starts re-clustering. */
start(options: ReClusterOptions): Promise<boolean>;
}