Skip to content

Commit

Permalink
修复 'direct-message/view' 返回值
Browse files Browse the repository at this point in the history
  • Loading branch information
Tian-que committed Apr 29, 2024
1 parent 344f9ba commit 37572a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nonebot/adapters/kaiheila/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class BaseMessage(BaseModel):
"""消息内容"""
embeds: Optional[List[dict]] = None
"""超链接解析数据"""
attachments: Optional[Union[bool, Attachments]] = None
attachments: Optional[Union[bool, Attachments, List[Attachments]]] = None
"""附加的多媒体数据"""
create_at: Optional[int] = None
"""创建时间"""
Expand All @@ -314,7 +314,7 @@ class BaseMessage(BaseModel):
""""""
read_status: Optional[bool] = None
"""是否已读"""
quote: Optional[Quote] = None
quote: Optional[Union[str, Quote]] = None
"""引用数据"""
mention_info: Optional[MentionInfo] = None
"""引用特定用户或特定角色的信息"""
Expand Down

0 comments on commit 37572a8

Please sign in to comment.