Tyrrrz / DiscordChatExporter

Exports Discord chat logs to a file
MIT License
7.65k stars 699 forks source link

System.FormatException parsing through CarlBot auditlog embeds of NQN messages #1157

Closed LeMeowM closed 11 months ago

LeMeowM commented 11 months ago

Version

2.42.3

Flavor

CLI (Command-Line Interface)

Platform

MacOS Arm64

Export format

JSON

Steps to reproduce

  1. create a server and invite CarlBot and NQN
  2. set a channel to log message deletes and edits
  3. use NQN to post an emote
  4. try to download the servers messages

It will then error when getting to that channel.

Details

Checklist

LeMeowM commented 11 months ago

{ "id": "1044646740399226900", "type": "Default", "timestamp": "2022-11-22T17:13:11.509+01:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "", "author": { "id": "1031238198778662965", "name": "Carl-bot Logging", "discriminator": "0000", "nickname": "Carl-bot Logging", "color": null, "isBot": true, "roles": [], "avatarUrl": "https://cdn.discordapp.com/avatars/1031238198778662965/9bdbba85c24c636cf57d7e310d356fe1.png?size=512" }, "attachments": [], "embeds": [ { "title": "Message edited in #vc-chat", "url": null, "timestamp": "2022-11-22T17:13:09.842+01:00" ], "messageCount": 1928 } this was the offending message that caused the crash

Tyrrrz commented 11 months ago

Looks like a duplicate of #1156

this was the offending message that caused the crash

That message does not have a timestamp tag anywhere in the content though