Skip to content

Commit

Permalink
🔖 bump version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CMHopeSunshine committed Nov 15, 2023
1 parent d99ca2c commit 3a15a6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nonebot/adapters/discord/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def message(self) -> Message:
return self.get_message()

@property
def origin_message(self) -> Message:
return getattr(self, "_origin_message", self.get_message())
def original_message(self) -> Message:
return getattr(self, "_original_message", self.get_message())

@override
def get_type(self) -> str:
Expand All @@ -211,7 +211,7 @@ def get_session_id(self) -> str:
def get_message(self) -> Message:
if not hasattr(self, "_message"):
setattr(self, "_message", Message.from_guild_message(self))
setattr(self, "_origin_message", Message.from_guild_message(self))
setattr(self, "_original_message", Message.from_guild_message(self))
return getattr(self, "_message")

@override
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-adapter-discord"
version = "0.1.0"
version = "0.1.1"
description = "Discord adapter for nonebot2"
authors = ["CMHopeSunshine <[email protected]>", "yanyongyu <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 3a15a6e

Please sign in to comment.