🔀 Merge pull request #200

Doc typo
This commit is contained in:
Ju4tCode 2021-02-07 14:03:23 +08:00 committed by GitHub
commit 6f8aa49d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 15 deletions

View File

@ -1070,20 +1070,6 @@ mirai-api-http 协议事件,字段与 mirai-api-http 一致。各事件字段
> * `MEMBER`: 普通群成员 > * `MEMBER`: 普通群成员
## _class_ `MessageChain`
基类:[`nonebot.adapters.Message`](README.md#nonebot.adapters.Message)
Mirai 协议 Messaqge 适配
由于Mirai协议的Message实现较为特殊, 故使用MessageChain命名
### `export()`
导出为可以被正常json序列化的数组
## _class_ `MessageEvent` ## _class_ `MessageEvent`
基类:`nonebot.adapters.mirai.event.base.Event` 基类:`nonebot.adapters.mirai.event.base.Event`

View File

@ -123,7 +123,7 @@ async def async_checker(bot: Bot, event: Event, state: T_State) -> bool:
def sync_checker(bot: Bot, event: Event, state: T_State) -> bool: def sync_checker(bot: Bot, event: Event, state: T_State) -> bool:
return True return True
def check(arg1, args2): def check(arg1, arg2):
async def _checker(bot: Bot, event: Event, state: T_State) -> bool: async def _checker(bot: Bot, event: Event, state: T_State) -> bool:
return bool(arg1 + arg2) return bool(arg1 + arg2)