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

48 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2023-12-05 16:47:54 +01:00
import { LoggerMasterOptions, LoggerClientOptions } from '@navy.gif/logger';
import { ClientOptions } from './Client.ts';
import { StorageManagerOptions } from './Storage.js';
// export type ClientOptions = {
// prefix: string,
// developers: string[],
// developmentMode: boolean,
// invite: string,
// slashCommands: {
// developerGuilds: string[]
// },
// libraryOptions: {
// partials: string[],
// intents: string[],
// invalidRequestWarningInterval: number
// }
// }
export type ControllerOptions = {
rootDir: string,
logger: LoggerMasterOptions,
shardOptions: {
totalShards: 'auto' | number,
shardList?: 'auto' | number[]
respawn?: boolean,
},
discord: ClientOptions,
storage: StorageManagerOptions,
api: {
load: boolean,
domain: string,
authCallback: string,
dashboardUrl: string,
logger: LoggerClientOptions,
debug: boolean,
shardCount: number,
discord: {
scope: string[],
token: string
}
http: {
port: number
}
}
};