CIRCE / DOCUMENTATION
Configuration
Every option of circe.config.ts.
On this page
circe.config.ts exports configuration and never starts anything. Options are closed: unknown keys fail at startup.
import { defineCirceConfig } from "@sxnnyside/circe";
import { GatewayIntentBits } from "discord.js";
import config from "./src/config.ts";
export default defineCirceConfig({
config,
intents: [GatewayIntentBits.Guilds],
health: { port: 8080 },
});
Options
| Option | Default | Purpose |
|---|---|---|
config |
required | Environment schema from defineConfig. See Environment. |
intents |
required | Gateway intents. |
client |
Other discord.js client options: presence, allowedMentions, partials, sweepers. |
|
transport |
"gateway" |
"gateway", "http" or "hybrid". See Transports. |
http |
{ publicKey, port? }. Required by types for http and hybrid. Port 8787. |
|
health |
{ port, host?, checks? }. See Health. |
|
onUnhandledRejection |
"exit" |
"exit" shuts down; "log" only logs. |
shutdownTimeoutMs |
10000 |
Longest a signal or crash shutdown may take before a forced exit. |
scanRoot |
./src |
Folder scanned for modules, relative to the config. |
integrations |
See Integrations. | |
onInteractionComplete |
Called with an InteractionMetric after every interaction. |
