MCPcopy
hub / github.com/nonebot/nonebot2 / Message

Class Message

nonebot/permission.py:21–30  ·  view source on GitHub ↗

检查是否为消息事件

Source from the content-addressed store, hash-verified

19
20
21class Message:
22 """检查是否为消息事件"""
23
24 __slots__ = ()
25
26 def __repr__(self) -> str:
27 return "Message()"
28
29 async def __call__(self, type: str = EventType()) -> bool:
30 return type == "message"
31
32
33class Notice:

Callers 2

permission.pyFile · 0.70
test_shell_commandFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_shell_commandFunction · 0.40