Merge pull request #44 from needhamgary/patch-1

refactor: update to proper usage
This commit is contained in:
Jacob Nguyen
2023-09-24 18:38:45 -05:00
committed by GitHub

View File

@@ -58,8 +58,9 @@ import { makeDependencies, single, Service } from '@sern/handler'
import { Client } from 'discord.js'
await makeDependencies({
root => root.add({ '@sern/client': single(() => new Client(...options) }))
})
build: (root) =>
root.add({ "@sern/client": single(() => new Client(...options)) }),
});
await Service('@sern/client').login()
```