📝 update api docs

This commit is contained in:
yanyongyu
2020-12-07 00:52:26 +08:00
parent a420af75fc
commit e0d44f3fa7
12 changed files with 58 additions and 204 deletions

View File

@ -42,7 +42,7 @@ Rule(async_function, run_sync(sync_function))
* **参数**
* `*checkers: Callable[[Bot, Event, dict], Awaitable[bool]]`: **异步** RuleChecker
* `*checkers: Callable[[Bot, Event, State], Awaitable[bool]]`: **异步** RuleChecker
@ -58,7 +58,7 @@ Rule(async_function, run_sync(sync_function))
* **类型**
* `Set[Callable[[Bot, Event, dict], Awaitable[bool]]]`
* `Set[Callable[[Bot, Event, State], Awaitable[bool]]]`
@ -80,7 +80,7 @@ Rule(async_function, run_sync(sync_function))
* `event: Event`: Event 对象
* `state: dict`: 当前 State
* `state: State`: 当前 State