🎨 format code

This commit is contained in:
StarHeartHunt 2021-07-11 12:25:27 +08:00
parent 2c056364c1
commit 4fc655323d

View File

@ -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))