From 09d9f414cee18c6eb19a46569bd27265c3601cf7 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Tue, 14 Sep 2021 21:35:45 +0800 Subject: [PATCH] :loud_sound: add desc and name of `NoticeEvent` --- .../nonebot-adapter-feishu/nonebot/adapters/feishu/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py index e01d5a4d..8bc15e8e 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py @@ -225,11 +225,11 @@ class NoticeEvent(Event): @overrides(Event) def get_event_name(self) -> str: - raise ValueError("Event has no name!") + return self.header.event_type @overrides(Event) def get_event_description(self) -> str: - raise ValueError("Event has no description!") + return str(self.dict()) @overrides(Event) def get_message(self) -> Message: