From 20778e93cab53bad73b46087d31b6d5e4098c031 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 29 Jul 2023 21:31:17 -0600 Subject: [PATCH] fix timestamps --- lib/messages.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/messages.go b/lib/messages.go index e49422c..5527bf1 100644 --- a/lib/messages.go +++ b/lib/messages.go @@ -477,6 +477,7 @@ func ProcessMessage(msg discord.Message, options MessageOptions) []string { if i == 0 { options.Reply = msg.ReferencedMessage } + options.Timestamp = time.Time(msg.Timestamp) options.IsMention = isPing options.IsDM = isDM options.IsJoin = msg.Type == discord.GuildMemberJoinMessage @@ -497,6 +498,7 @@ func ProcessMessage(msg discord.Message, options MessageOptions) []string { options.Attachments = msg.Attachments options.Stickers = msg.Stickers options.Reply = msg.ReferencedMessage + options.Timestamp = time.Time(msg.Timestamp) options.IsMention = isPing options.IsDM = isDM options.IsJoin = msg.Type == discord.GuildMemberJoinMessage