mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
Merge pull request #44 from needhamgary/patch-1
refactor: update to proper usage
This commit is contained in:
@@ -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()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user