mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-18 00:30:13 +08:00
🎨 format code
This commit is contained in:
parent
2c056364c1
commit
4fc655323d
@ -239,7 +239,8 @@ class MessageDeserializer:
|
||||
return msg._merge()
|
||||
elif self.type == "text":
|
||||
for key, mention in dict_mention.items():
|
||||
self.data["text"] = self.data["text"].replace(key, f"@{mention['name']}")
|
||||
self.data["text"] = self.data["text"].replace(
|
||||
key, f"@{mention['name']}")
|
||||
self.data["mentions"] = dict_mention
|
||||
|
||||
return Message(MessageSegment(self.type, self.data))
|
||||
|
Loading…
x
Reference in New Issue
Block a user