fix timestamps

This commit is contained in:
Cynthia Foxwell 2023-07-29 21:31:17 -06:00
parent 7fa6c35a31
commit 20778e93ca
1 changed files with 2 additions and 0 deletions

View File

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