Commit graph

3 commits

Author SHA1 Message Date
primetime43 47a163e982 Handle non-fatal exceptions in delete command
Import DiscordChatExporter.Core.Exceptions and switch from a generic catch to catching DiscordChatExporterException only when it's non-fatal (catch (DiscordChatExporterException ex) when (!ex.IsFatal)). This ensures fatal exceptions propagate while non-fatal errors are counted and reported. Also clarified the channel option description by removing the incorrect 'in DMs' note about deletions.
2026-05-18 20:09:53 -04:00
primetime43 5ad979f69c Adapt DeleteMessagesCommand to upstream CliFx + PowerKit changes
Upstream replaced CliFx.Attributes with CliFx.Binding and now
requires command classes to be partial. Pipe() was also moved
from DiscordChatExporter.Core.Utils.Extensions to PowerKit.Extensions.
2026-05-17 11:11:39 -04:00
primetime43 c38953d868 Add message deletion feature (CLI & GUI)
Introduce a message-deletion feature across CLI and GUI. Adds a new CLI command (deletemessages) with channel/before/after options and console progress. Extends DiscordClient with GetCurrentUserAsync and DeleteMessageAsync (including rate-limit handling) to perform deletions and surface authorization outcomes. GUI additions include DeleteSetup dialog, its ViewModel, view, and wiring: App registration, View/ViewModel managers, DashboardViewModel command, and a Delete button in the dashboard; deletion runs per-channel (parallel, with progress) and reports success/failure summaries.
2026-05-17 11:09:42 -04:00