From 5df40bf558c3153c65df0fa556afacb8a1292dc2 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 7 Sep 2017 05:42:31 +0000 Subject: [PATCH] Fix real timestamp in messages from changing during edits --- discordbot/titanembeds/database/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discordbot/titanembeds/database/__init__.py b/discordbot/titanembeds/database/__init__.py index 398700c..082c12d 100644 --- a/discordbot/titanembeds/database/__init__.py +++ b/discordbot/titanembeds/database/__init__.py @@ -79,6 +79,7 @@ class DatabaseInterface(object): .filter(Messages.message_id == message.id).first() if msg: msg.content = message.content + msg.timestamp = message.timestamp msg.edited_timestamp = message.edited_timestamp msg.mentions = json.dumps(get_message_mentions(message.mentions)) msg.attachments = json.dumps(message.attachments)