Navy.gif
2a3a034e59
- Added debug statements - Added option to limit commands to specific roles - Handle process exiting explicitly
22 lines
566 B
TypeScript
22 lines
566 B
TypeScript
import { LoggerMasterOptions } from '@navy.gif/logger';
|
|
import { ClientOptions } from './DiscordClient.js';
|
|
|
|
export type ShardingOptions = {
|
|
shardList?: 'auto' | number[],
|
|
totalShards?: 'auto' | number,
|
|
mode?: 'worker' | 'process',
|
|
respawn?: boolean,
|
|
shardArgs?: string[],
|
|
execArgv?: string[],
|
|
token?: string,
|
|
path?: string,
|
|
clientOptions?: ClientOptions,
|
|
debug?: boolean
|
|
}
|
|
|
|
export type ControllerOptions = {
|
|
rootDir: string,
|
|
logger: LoggerMasterOptions,
|
|
shardOptions: ShardingOptions,
|
|
discord: ClientOptions
|
|
} |