mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
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). |
||
|---|---|---|
| .. | ||
| Infra | ||
| Specs | ||
| Utils | ||
| DiscordChatExporter.Cli.Tests.csproj | ||
| Readme.md | ||
| xunit.runner.json | ||
DiscordChatExporter Tests
This test suite runs against a real Discord server, specifically created to exercise different behaviors required by the test scenarios. In order to run these tests locally, you need to join the test server and configure your authentication token.
- Join the test server
- Locate your Discord authentication token
- Add your token to user secrets:
dotnet user-secrets set DISCORD_TOKEN <token> - Run the tests:
dotnet test
Note
: If you want to add a new test case, please let me know and I will give you the required permissions on the server.