mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-30 09:40:05 +00:00
⚡ add support for mirai adapter NudgeEvent
, fix #494
This commit is contained in:
@ -27,6 +27,19 @@ class UserPermission(str, Enum):
|
||||
MEMBER = 'MEMBER'
|
||||
|
||||
|
||||
class NudgeSubjectKind(str, Enum):
|
||||
"""
|
||||
:说明:
|
||||
|
||||
戳一戳类型枚举类
|
||||
|
||||
* ``Group``: 群
|
||||
* ``Friend``: 好友
|
||||
"""
|
||||
Group = 'Group'
|
||||
Friend = 'Friend'
|
||||
|
||||
|
||||
class GroupInfo(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
@ -46,6 +59,11 @@ class PrivateChatInfo(BaseModel):
|
||||
remark: str
|
||||
|
||||
|
||||
class NudgeSubject(BaseModel):
|
||||
id: int
|
||||
kind: NudgeSubjectKind
|
||||
|
||||
|
||||
class Event(BaseEvent):
|
||||
"""
|
||||
mirai-api-http 协议事件,字段与 mirai-api-http 一致。各事件字段参考 `mirai-api-http 事件类型`_
|
||||
|
Reference in New Issue
Block a user