How to Backup Discord channels
Tool to backup
Command line example
# download a specific channel and all the media
dotnet DiscordChatExporter.Cli.dll export -t "TOKEN" -c CHANNEL --media
# download multiple threads and all the media
dotnet DiscordChatExporter.Cli.dll export -t "TOKEN" -c CHANNEL -c CHANNEL --media
Doc
Know issues
Threads are considered as temporary channels so they need to be backed up manually by entering each thread’s ID as a -c CHANNEL as shown above.