Skip to content
Interfacegatewayv0.11.0

GatewayConfig

The gateway transport's configuration, what the Seedcord constructor takes.

interface GatewayConfig extends ServerHostConfig

botColor

Accent and embed color applied to every BuilderComponent (embeds, containers).

Omit for Discord's default color.

botColor?: BotColor

Inherited from:Config

errors

Settings for how the framework renders errors and reports faults.

errors?: ErrorsConfig

Inherited from:Config

lifecycle

Set this when your platform kills the process on a shorter timer than seedcord's default.

lifecycle?: LifecycleConfig

Inherited from:Config

logger

Logging level, sinks, and per-channel overrides. Omitted fields keep the transport's defaults.

logger?: LoggerConfig

Inherited from:Config

ownerIds

User ids the OwnerOnly gate treats as bot owners.

ownerIds?: string[]

Inherited from:Config

server

The bot's web server.

server?: ServerConfig
// listens on 8080 and answers the health check on /healthz
server: { port: 8080, health: '/healthz' }

// keeps the bot off every port so your own server can pass it requests
server: { port: false }

Inherited from:ServerHostConfig

Default:a server on port 3000 that answers /health