From 6d551b19af8c70df6b5962b5a3e45b48a5285a42 Mon Sep 17 00:00:00 2001 From: Leonardo Mosquera Date: Mon, 3 Mar 2025 18:47:53 -0300 Subject: [PATCH] FIXMEs --- DiscordChatExporter.Core/Exporting/ChannelExporter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DiscordChatExporter.Core/Exporting/ChannelExporter.cs b/DiscordChatExporter.Core/Exporting/ChannelExporter.cs index 55de0bd5..af8f7354 100644 --- a/DiscordChatExporter.Core/Exporting/ChannelExporter.cs +++ b/DiscordChatExporter.Core/Exporting/ChannelExporter.cs @@ -41,6 +41,8 @@ public class ChannelExporter(DiscordClient discord) if ((request.Before is not null && !request.Channel.MayHaveMessagesBefore(request.Before.Value)) || (request.After is not null && !request.Channel.MayHaveMessagesAfter(request.After.Value))) { + // FIXME: this should be async like the rest of the error output in the project, + // but that would require a console reference which this method does not currently have; some refactoring might be needed Console.Error.WriteLine( $"NOTE: Channel '{request.Channel.Name}' " + $"of guild '{request.Guild.Name}' " @@ -86,5 +88,8 @@ public class ChannelExporter(DiscordClient discord) ); } } + + // FIXME: no file is written if no new messages due to --after/--before; + // need to still create a file with just boilerplate and empty message list } }