Skip to content

Commit

Permalink
✨ rename replyElement to reply
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed Sep 17, 2023
1 parent 28aad43 commit 3bcc665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot/adapters/red/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _check_reply_me(bot: "Bot", event: MessageEvent) -> None:
)
):
event.to_me = True
event.replyElement = event.elements.pop(0)
event.reply = event.elements.pop(0)


def _check_nickname(bot: "Bot", event: MessageEvent) -> None:
Expand Down
2 changes: 1 addition & 1 deletion nonebot/adapters/red/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MessageEvent(Event, MessageModel):
"""消息事件"""

to_me: bool = False
replyElement: Optional[Element]
reply: Optional[Element]

@override
def get_type(self) -> str:
Expand Down

0 comments on commit 3bcc665

Please sign in to comment.