Skip to content

Commit

Permalink
🐛 version 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Apr 26, 2024
1 parent 856142a commit ab854bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions nonebot/adapters/satori/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ def message(
data["id"] = mid
if forward is not None:
data["forward"] = forward
if content:
data["content"] = content
return RenderMessage("message", data) # type: ignore
return RenderMessage("message", data)(content or []) # type: ignore

@staticmethod
def quote(
Expand All @@ -236,9 +234,7 @@ def quote(
data = {"id": mid}
if forward is not None:
data["forward"] = forward # type: ignore
if content:
data["content"] = content # type: ignore
return RenderMessage("quote", data) # type: ignore
return RenderMessage("quote", data)(content or []) # type: ignore

@staticmethod
def author(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nonebot-adapter-satori"
version = "0.11.1"
version = "0.11.2"
description = "Satori Protocol Adapter for Nonebot2"
authors = [
{name = "RF-Tar-Railt",email = "[email protected]"},
Expand Down

0 comments on commit ab854bb

Please sign in to comment.