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

Method get_type

nonebot/internal/adapter/event.py:34–36  ·  view source on GitHub ↗

获取事件类型的方法,类型通常为 NoneBot 内置的四种类型。

(self)

Source from the content-addressed store, hash-verified

32
33 @abc.abstractmethod
34 def get_type(self) -> str:
35 """获取事件类型的方法,类型通常为 NoneBot 内置的四种类型。"""
36 raise NotImplementedError
37
38 @abc.abstractmethod
39 def get_event_name(self) -> str:

Callers 4

_event_typeFunction · 0.45
get_valueMethod · 0.45
check_permMethod · 0.45
check_ruleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected