fix timestamps

This commit is contained in:
Cynthia Foxwell 2023-07-29 21:31:17 -06:00
parent 7fa6c35a31
commit 20778e93ca

View file

@ -477,6 +477,7 @@ func ProcessMessage(msg discord.Message, options MessageOptions) []string {
if i == 0 { if i == 0 {
options.Reply = msg.ReferencedMessage options.Reply = msg.ReferencedMessage
} }
options.Timestamp = time.Time(msg.Timestamp)
options.IsMention = isPing options.IsMention = isPing
options.IsDM = isDM options.IsDM = isDM
options.IsJoin = msg.Type == discord.GuildMemberJoinMessage options.IsJoin = msg.Type == discord.GuildMemberJoinMessage
@ -497,6 +498,7 @@ func ProcessMessage(msg discord.Message, options MessageOptions) []string {
options.Attachments = msg.Attachments options.Attachments = msg.Attachments
options.Stickers = msg.Stickers options.Stickers = msg.Stickers
options.Reply = msg.ReferencedMessage options.Reply = msg.ReferencedMessage
options.Timestamp = time.Time(msg.Timestamp)
options.IsMention = isPing options.IsMention = isPing
options.IsDM = isDM options.IsDM = isDM
options.IsJoin = msg.Type == discord.GuildMemberJoinMessage options.IsJoin = msg.Type == discord.GuildMemberJoinMessage