Short-circuit if trying to export an empty channel or a channel with mismatching boundaries

Closes #1024
This commit is contained in:
Tyrrrz
2023-05-13 21:45:15 +03:00
parent faad994332
commit 9048557b17
4 changed files with 15 additions and 5 deletions

View File

@@ -169,10 +169,10 @@ public abstract class ExportCommandBase : DiscordCommandBase
);
}
// Export
var cancellationToken = console.RegisterCancellationHandler();
var errors = new ConcurrentDictionary<Channel, string>();
// Export
await console.Output.WriteLineAsync($"Exporting {channels.Count} channel(s)...");
await console.CreateProgressTicker().StartAsync(async progressContext =>
{