Files
website/src/content/docs/v4/api/functions/makeDependencies.md
2025-01-24 07:41:47 +01:00

640 B

editUrl, next, prev, title
editUrl next prev title
false false false makeDependencies

makeDependencies(conf): Promise<void>

makeDependencies constructs a dependency injection container for sern handler to use. This is required to start the handler, and is to be called before Sern.init.

Parameters

conf: ValidDependencyConfig

Returns

Promise<void>

Example

await makeDependencies(({ add }) => {
    add('@sern/client', new Client({ intents, partials }) 
})

Source

src/core/ioc.ts:63