mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
deduplicate channels
This commit is contained in:
parent
42ebb9928e
commit
e6571d95ee
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue