From 5d5bde37891599d43b8a68daf5828c49f39cf2ea Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 18 Jun 2026 10:32:49 +0300 Subject: [PATCH] Rearrange --- DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs index f695bd31..57b4ee49 100644 --- a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs @@ -165,8 +165,6 @@ public abstract class ExportCommandBase : DiscordCommandBase throw new CommandException("Option --media-dir cannot be used without --media."); } - var unwrappedChannels = new List(channels); - // 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. // Validate this up-front, before fetching threads, because thread fetching can take a @@ -198,6 +196,8 @@ public abstract class ExportCommandBase : DiscordCommandBase ); } + var unwrappedChannels = new List(channels); + // Unwrap threads if (ThreadInclusionMode != ThreadInclusionMode.None) {