galactic-bot/@types/Shard.d.ts
2023-12-05 17:47:54 +02:00

30 lines
661 B
TypeScript

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'