mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 01:18:19 +08:00
📝 update api docs
This commit is contained in:
parent
0761a60443
commit
d26d7bba55
@ -970,10 +970,35 @@ Mirai 协议 Message 适配
|
||||
由于Mirai协议的Message实现较为特殊, 故使用MessageChain命名
|
||||
|
||||
|
||||
### `reduce()`
|
||||
|
||||
|
||||
* **说明**
|
||||
|
||||
忽略为空的消息段, 合并相邻的纯文本消息段
|
||||
|
||||
|
||||
|
||||
### `export()`
|
||||
|
||||
导出为可以被正常json序列化的数组
|
||||
|
||||
|
||||
### `extract_first(*type)`
|
||||
|
||||
|
||||
* **说明**
|
||||
|
||||
弹出该消息链的第一个消息
|
||||
|
||||
|
||||
|
||||
* **参数**
|
||||
|
||||
|
||||
* \*type: MessageType: 指定的消息类型, 当指定后如类型不匹配不弹出
|
||||
|
||||
|
||||
# NoneBot.adapters.mirai.utils 模块
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user