DiscordChatExporter/DiscordChatExporter.Cli.Tests/Specs
Kornelius Rohrschneider 5251ae0e95
Added explicit handling of existing export files
Previously, existing export files had just been overwritten by a new export.
This has been changed; instead, there are now several possible options on how to explicitly handle existing export files:
- Abort aborts the export if the channel had previously been exported.
- Overwrite removes the existing export before exporting the channel again.
- Append appends the existing export, which means that only messages after the last export will be exported.
The option that's used if a previous export is detected is currently hardcoded.

A safeguard has been added to prevent the exporter from accidentally overwriting any existing files.

Additionally, the creation of a Snowflake from a timestamp has been improved: If a Snowflake will be used to determine the messages starting at the given timestamp, it now won't precisely represent that timestamp anymore, but instead be the latest possible Snowflake just before that timestamp.
This is necessary to prevent the first Discord message in that specific millisecond from being excluded (which may have previously happened).
2025-10-25 19:17:00 +02:00
..
CsvContentSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
DateRangeSpecs.cs Added explicit handling of existing export files 2025-10-25 19:17:00 +02:00
FilterSpecs.cs Format stuff 2024-10-26 21:41:16 +03:00
HtmlAttachmentSpecs.cs Make test assertions more relaxed in terms of user-made content URLs 2023-12-26 02:40:50 +02:00
HtmlContentSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
HtmlEmbedSpecs.cs Migrate to Avalonia (#1220) 2024-04-27 04:17:46 +03:00
HtmlGroupingSpecs.cs Format stuff 2024-10-26 21:41:16 +03:00
HtmlMarkdownSpecs.cs Unify whitespace characters to fix tests 2025-02-04 00:17:57 +02:00
HtmlMentionSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
HtmlReplySpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
HtmlStickerSpecs.cs Make tests more resilient 2023-09-28 19:18:52 +03:00
JsonAttachmentSpecs.cs Make tests more resilient 2023-09-28 19:18:52 +03:00
JsonContentSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
JsonEmbedSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
JsonEmojiSpecs.cs Include inline emoji in JSON export (#1311) 2024-11-06 19:23:40 +02:00
JsonMentionSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
JsonStickerSpecs.cs Make tests more resilient 2023-09-28 19:18:52 +03:00
PartitioningSpecs.cs Format stuff 2024-10-26 21:41:16 +03:00
PlainTextContentSpecs.cs Use CSharpier 2023-08-22 21:17:19 +03:00
SelfContainedSpecs.cs Format stuff 2024-10-26 21:41:16 +03:00