Skip to content

Commit

Permalink
🐛 Mention user_id为str而非int
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric committed Oct 24, 2023
1 parent 47b3159 commit bf8479d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 102 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_saa/adapters/qq.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _image(i: Image) -> MessageSegment:

@register_qq(Mention)
def _mention(m: Mention) -> MessageSegment:
return MessageSegment.mention_user(int(m.data["user_id"]))
return MessageSegment.mention_user(m.data["user_id"])

@register_qq(Reply)
def _reply(r: Reply) -> MessageSegment:
Expand Down
Loading

0 comments on commit bf8479d

Please sign in to comment.