Skip to content

Commit

Permalink
feat(cqhttp): 修改 CQHTTP 适配器事件的 detail_type 判断方式
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 committed Sep 8, 2024
1 parent 7462b2f commit aacc806
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def handle_cqhttp_event(self, msg: dict[str, Any]) -> None:
break
event_class = self.get_event_model(
post_type,
detail_type,
detail_type or msg.get(post_type + "_type"),
msg.get("sub_type"),
)

Expand Down

0 comments on commit aacc806

Please sign in to comment.