📝 update api docs

This commit is contained in:
nonebot
2020-12-02 17:04:45 +00:00
parent edb4458031
commit 33bd9d0fb8
3 changed files with 10 additions and 418 deletions

View File

@ -176,7 +176,7 @@ await bot.send_msg(message="hello world")
## _class_ `BaseEvent`
基类:`abc.ABC`
基类:`abc.ABC`, `typing.Generic`
Event 基类。提供上报信息的关键信息,其余信息可从原始上报消息获取。
@ -187,7 +187,7 @@ Event 基类。提供上报信息的关键信息,其余信息可从原始上
* **参数**
* `raw_event: dict`: 原始上报消息
* `raw_event: T`: 原始上报消息
@ -309,7 +309,7 @@ Event 基类。提供上报信息的关键信息,其余信息可从原始上
* **参数**
* `message: Union[str, dict, list, MessageSegment, Message]`: 消息内容
* `message: Union[str, dict, list, BaseModel, MessageSegment, Message]`: 消息内容
@ -350,7 +350,7 @@ Event 基类。提供上报信息的关键信息,其余信息可从原始上
* **说明**
缩减消息数组,即拼接相邻纯文本消息段
缩减消息数组,即按 MessageSegment 的实现拼接相邻消息段