Commit 7d3daf78 authored by nanahira's avatar nanahira

doc

parent 9b497d0c
Pipeline #6097 passed with stages
in 38 seconds
......@@ -129,3 +129,16 @@ export class AppService {
constructor(@InjectContextChannel() private ctx: Context) {}
}
```
### Inject Context of guild
```ts
import { Injectable } from '@nestjs/common';
import { KoishiService, InjectContextGuild } from 'koishi-nestjs';
import { Context } from 'koishi';
@Injectable()
export class AppService {
constructor(@InjectContextGuild() private ctx: Context) {}
}
```
{
"name": "koishi-nestjs",
"version": "1.0.14",
"version": "1.0.15",
"description": "Koishi.js as Nest.js Module",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment