Skip to main content

Function: getConfig()

getConfig(): object

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

Get the loaded config of the project.

Returns

The project config.

clientOptions?

optional clientOptions: Omit<ClientOptions, "intents">

Optional custom client options for Discord.js (excluding intents).

These are passed directly to the Client constructor when initializing the bot.

See

https://discord.js.org/docs/packages/discord.js/main/ClientOptions:Interface

entryDir

entryDir: string

The path to the main project source directory.

Defaultvalue

src

intents

intents: bigint | "auto" | GatewayIntentBits[]

The gateway intents to use for the Discord client.

  • auto — automatically determine the required intents.
  • bigint — a raw bitfield value representing the combined intents.
  • array — a list of individual intent flags from GatewayIntentBits.

Defaultvalue

auto

prefixes

prefixes: string[]

token

token: string