💡 add docstring for cqhttp message

This commit is contained in:
yanyongyu 2020-10-30 16:49:31 +08:00
parent 89c3aa38a6
commit 70c7927006
2 changed files with 10 additions and 0 deletions

View File

@ -405,7 +405,11 @@ CQHTTP 协议 Event 适配。继承属性参考 [BaseEvent](./#class-baseevent)
基类:[`nonebot.adapters.BaseMessageSegment`](#None)
CQHTTP 协议 MessageSegment 适配。具体方法参考协议消息段类型或源码。
## _class_ `Message`
基类:[`nonebot.adapters.BaseMessage`](#None)
CQHTTP 协议 Message 适配。

View File

@ -633,6 +633,9 @@ class Event(BaseEvent):
class MessageSegment(BaseMessageSegment):
"""
CQHTTP 协议 MessageSegment 适配具体方法参考协议消息段类型或源码
"""
@overrides(BaseMessageSegment)
def __init__(self, type: str, data: Dict[str, Any]) -> None:
@ -811,6 +814,9 @@ class MessageSegment(BaseMessageSegment):
class Message(BaseMessage):
"""
CQHTTP 协议 Message 适配
"""
@staticmethod
@overrides(BaseMessage)