Configuration

Configuration

In a recipe project, a config file is a .js or .ts file in your project’s root directory that exports the following.

client

An instance of Client. This client will be used to interact with the Discord API.

config

An object that follows the structure of Config. This is the configuration of the reciple framework.

build

An object that follows the structure of BuildConfig. This is the config for tsdown, which is used to build the modules.

sharding

An object that follows the structure of ShardingManagerOptions. This is the config for the sharding manager. A config for sharding is not exported by default.