galactic-bot/@types/Shard.d.ts

30 lines
661 B
TypeScript
Raw Permalink Normal View History

2023-12-05 16:47:54 +01:00
import { ClientOptions } from './Client.ts';
export type ShardingOptions = {
shardList?: 'auto' | number[],
totalShards?: 'auto' | number,
mode?: 'worker' | 'process',
respawn?: boolean,
shardArgs?: string[],
execArgv?: string[],
token?: string,
path?: string,
clientOptions?: ClientOptions
}
export type ShardOptions = {
file: string,
token?: string,
execArgv?: string[],
args?: string[];
respawn?: boolean,
clientOptions: ClientOptions
totalShards: number
}
export type BroadcastEvalOptions = {
shard?: number,
context?: object
}
export type ShardMethod = 'eval' | 'fetchClientValue'