Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
🐛 template_id 应为可选
Browse files Browse the repository at this point in the history
  • Loading branch information
CMHopeSunshine authored Dec 15, 2023
1 parent 7669890 commit f00b5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/adapters/villa/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class ClickMsgComponentEvent(NoticeEvent):
"""如果被回复的消息从属于机器人,则该字段不为空字符串"""
component_id: str
"""机器人自定义的组件id"""
template_id: int
template_id: Optional[int] = None
"""如果该组件模板为已创建模板,则template_id不为0"""
extra: str
"""机器人自定义透传信息"""
Expand Down

0 comments on commit f00b5cb

Please sign in to comment.