Tyrrrz / DiscordChatExporter

Exports Discord chat logs to a file
MIT License
7.29k stars 668 forks source link

The date template tokens %a and %b don't work #1228

Closed Auditormadness9 closed 2 months ago

Auditormadness9 commented 2 months ago

Version

v2.43.0

Flavor

CLI (Command-Line Interface)

Platform

Windows 11

Export format

HTML

Steps to reproduce

DiscordChatExporter.Cli export -t [token] -c [channelID] -o "[directory]\%a - %C.html"

or

DiscordChatExporter.Cli export -t [token] -c [channelID] -o "[directory]\%b - %C.html"

Details

It should export them with names like eg. 05-05-2024 - Auditormadness9 but it instead exports it with the date part being blank, aka eg. - Auditormadness9. It does so on every single DM channel.

Checklist

96-LB commented 2 months ago

Are you setting the --after or --before flags?

Tyrrrz commented 2 months ago

It only works if you actually specified date boundaries, otherwise there is no concept of after or before.

Auditormadness9 commented 2 months ago

I see. In that case, is there no template token for just the date of the channel's snowflake?

Tyrrrz commented 2 months ago

I see. In that case, is there no template token for just the date of the channel's snowflake?

Not in the date format, just the snowflake format. The channel ID is just derived from when it was created.