From 34e9b0bfcc706fe360a0534f81a579db9d42dd8e Mon Sep 17 00:00:00 2001 From: LostXOR Date: Tue, 22 Oct 2024 19:44:42 -0500 Subject: [PATCH] Add info for `--filter` in CLI docs (#1310) --- .docs/Using-the-CLI.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.docs/Using-the-CLI.md b/.docs/Using-the-CLI.md index e127a3e..20c6315 100644 --- a/.docs/Using-the-CLI.md +++ b/.docs/Using-the-CLI.md @@ -214,6 +214,16 @@ Don't forget to quote (") the date if it has spaces! More info about .NET date formats [here](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings). +#### Filtering messages + +Use `--filter` to filter what messages are included in the export. + +```console +./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --filter "from:Tyrrrz has:image" +``` + +Documentation on message filter syntax can be found [here](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/.docs/Message-filters.md). + ### Export channels from a specific server To export all channels in a specific server, use the `exportguild` command and provide the server ID through the `-g|--guild` option: