MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / MetaEvent

Class MetaEvent

nonebot/permission.py:57–66  ·  view source on GitHub ↗

检查是否为元事件

Source from the content-addressed store, hash-verified

55
56
57class MetaEvent:
58 """检查是否为元事件"""
59
60 __slots__ = ()
61
62 def __repr__(self) -> str:
63 return "MetaEvent()"
64
65 async def __call__(self, type: str = EventType()) -> bool:
66 return type == "meta_event"
67
68
69MESSAGE: Permission = Permission(Message())

Callers 1

permission.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected