Add clickable account tags in message cards

This commit is contained in:
Ske 2019-04-14 23:24:49 +02:00
parent 6c3c6eae4d
commit b7d648935d

View File

@ -209,7 +209,7 @@ async def message_card(client: discord.Client, message: db.MessageInfo, include_
embed.add_field(name="Member", value="{} (`{}`)".format(message.name, message.hid))
if original_sender:
sender_name = "{}#{}".format(original_sender.name, original_sender.discriminator)
sender_name = "<@{}> ({}#{})".format(message.sender, original_sender.name, original_sender.discriminator)
else:
sender_name = "(deleted account {})".format(message.sender)