Skip to content

Commit

Permalink
🐛 fix version 0.51.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Aug 6, 2024
1 parent a550d1f commit c6a5c3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ async def text(self, seg: Text, bot: Union[Bot, None]) -> "MessageSegment":

@export
async def at(self, seg: At, bot: Union[Bot, None]) -> "MessageSegment":
if seg.flag != "user":
raise SerializeFailed(lang.require("nbp-uniseg", "invalid_segment").format(type="at", seg=seg))
return MessageSegment.at(seg.target)

@export
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ async def text(self, seg: Text, bot: Union[Bot, None]) -> "MessageSegment":

@export
async def at(self, seg: At, bot: Union[Bot, None]) -> "MessageSegment":
if seg.flag != "user":
raise SerializeFailed(lang.require("nbp-uniseg", "invalid_segment").format(type="at", seg=seg))
return MessageSegment.mention(seg.target)

@export
Expand Down

0 comments on commit c6a5c3f

Please sign in to comment.