This commit is contained in:
8x4 2026-02-13 08:52:00 +08:00 committed by GitHub
commit e1a83aa176
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,6 +199,10 @@ public abstract class ExportCommandBase : DiscordCommandBase
await console.Output.WriteLineAsync($"Fetched {fetchedThreadsCount} thread(s)."); await console.Output.WriteLineAsync($"Fetched {fetchedThreadsCount} thread(s).");
} }
// De-duplicate channels to avoid exporting the same channel multiple times
//https://github.com/Tyrrrz/DiscordChatExporter/issues/1433
unwrappedChannels = unwrappedChannels.DistinctBy(c => c.Id).ToList();
// Make sure the user does not try to export multiple channels into one file. // Make sure the user does not try to export multiple channels into one file.
// Output path must either be a directory or contain template tokens for this to work. // Output path must either be a directory or contain template tokens for this to work.