Saltearse al contenido
sern

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

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

Source

src/core/ioc.ts:63