mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-02 21:23:41 +00:00
Updated GUI, CLI and Formats explained (markdown)
@@ -225,6 +225,30 @@ If any of the folders in the path has a space in its name, add quotes (").
|
||||
DiscordChatExporter.Cli.exe export -t "mfa.Ifrn" -c 53555 -o "C:\Discord Exports\myserver"
|
||||
```
|
||||
|
||||
### Generating the filename and output directory dynamically ↴
|
||||
You can use template tokens to generate the output file path based on the guild and channel metadata.
|
||||
|
||||
For example:
|
||||
|
||||
```powershell
|
||||
DiscordChatExporter.Cli.exe export -t "mfa.Ifrn" -c 53555 -o "C:\Discord Exports\%G\%T\%C.html"
|
||||
```
|
||||
|
||||
Assuming you are exporting a channel named `"My channel"` in a category `"Text channels"` from a guild called `"My guild"`, you will get the following output file path: `"C:\Discord Exports\My guild\Text channels\My channel.html"`
|
||||
|
||||
Here is the full list of template tokens that get replaced with their corresponding values:
|
||||
|
||||
- `%g` - guild ID
|
||||
- `%G` - guild name
|
||||
- `%t` - category ID
|
||||
- `%T` - category name
|
||||
- `%c` - channel ID
|
||||
- `%C` - channel name
|
||||
- `%p` - channel position
|
||||
- `%P` - category position
|
||||
- `%a` - the "after" date
|
||||
- `%b` - the "before" date
|
||||
|
||||
### Partitioning ↴
|
||||
You can use partitioning to split files after a given number of messages.<br>
|
||||
For example, a channel with 36 messages set to be partitioned every 10 messages will output 4 files.
|
||||
|
||||
Reference in New Issue
Block a user