Skip to content
Interfaceseedcordv0.24.0

SeedcordConfig

The seedcord.config.ts of a bot that runs on Cloudflare Workers. For a bot on node or bun, use SeedcordServerConfig. Its build also takes outDir and start.

interface SeedcordConfig

emojis

Options for the emojis that seedcord uploads to your application.

files

Folders whose non-code files seedcord build bundles for readFiles to read, like ['./locales']. Each one includes its subfolders and resolves against root. A folder can sit beside root, like '../assets' with root: './src' as long as it is inside the folder that holds this config.

files?: string[]

Default:[]

instance

Path to the module whose default export is a configured Seedcord instance.

instance: string;

root

Root directory used for resolving relative paths.

root?: string

Default:the config directory

vitePlugins

A function that returns the Vite plugins to run on your bot's code in every seedcord command that loads it, like () => [yaml()]. They change what an import loads, like turning a .yaml file into an object. seedcord calls it once for each Vite server and build.

vitePlugins?: () => PluginOption[]