检查是否为消息事件
| 19 | |
| 20 | |
| 21 | class 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 | |
| 33 | class Notice: |
no outgoing calls