mirror of https://github.com/Mai-with-u/MaiBot.git
fix: reply中的format_info为空
parent
ea1a6401f8
commit
5b894f7f59
|
|
@ -309,10 +309,7 @@ class MessageSending(MessageProcessBase):
|
|||
|
||||
def set_reply(self, reply: Optional["MessageRecv"] = None) -> None:
|
||||
"""设置回复消息"""
|
||||
if (
|
||||
self.message_info.format_info.accept_format is not None
|
||||
and "reply" in self.message_info.format_info.accept_format
|
||||
):
|
||||
if self.message_info.format_info is not None and "reply" in self.message_info.format_info.accept_format:
|
||||
if reply:
|
||||
self.reply = reply
|
||||
if self.reply:
|
||||
|
|
|
|||
Loading…
Reference in New Issue