Skip to content

Commit

Permalink
⏪ 撤回 reply 类型的修改
Browse files Browse the repository at this point in the history
  • Loading branch information
CMHopeSunshine committed Nov 15, 2023
1 parent ebe41af commit 3f94235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot/adapters/discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def _check_reply(bot: "Bot", event: MessageEvent) -> None:
msg = await bot.get_channel_message(
channel_id=event.channel_id, message_id=event.message_reference.message_id
)
event.reply = Message.from_guild_message(msg)
event.reply = msg
if msg.author.id == bot.self_info.id:
event.to_me = True
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion nonebot/adapters/discord/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class MessageEvent(Event, MessageGet):

to_me: bool = False

reply: Optional[Message] = None
reply: Optional[MessageGet] = None

@property
def message(self) -> Message:
Expand Down

0 comments on commit 3f94235

Please sign in to comment.