💬 💡 rename some dataclass, add comments for events in mirai adapter

This commit is contained in:
Mix
2021-02-01 00:01:31 +08:00
parent ceeb37f8ec
commit 7c9cbe7b58
9 changed files with 143 additions and 50 deletions

View File

@ -118,6 +118,9 @@ class SessionManager:
class MiraiBot(BaseBot):
"""
mirai-api-http 协议 Bot 适配。
"""
@overrides(BaseBot)
def __init__(self,
@ -663,10 +666,6 @@ class MiraiBot(BaseBot):
* ``target: int``: 指定群的群号
* ``member_id: int``: 群员QQ号
* ``info: Dict[str, Any]``: 群员资料, 格式见 ``member_info`` 的返回值
:返回:
- ``[type]``: [description]
"""
return await self.api.post('memberInfo',
params={