Skip to main content

Function: loadConfig()

loadConfig(cwd): Promise<{ clientOptions?: Omit<ClientOptions, "intents">; entryDir: string; intents: bigint | "auto" | GatewayIntentBits[]; prefixes: string[]; token: string; }>

Defined in: packages/bakit/src/config.ts:56

Load the config file and save them for later usage.

Parameters

cwd

string = ...

The location of the config file, uses root by default.

Returns

Promise<{ clientOptions?: Omit<ClientOptions, "intents">; entryDir: string; intents: bigint | "auto" | GatewayIntentBits[]; prefixes: string[]; token: string; }>

The complete config with default values from the validation.