Replies: 6 comments 6 replies
-
There is, as far as I am aware. See https://discord.com/developers/docs/topics/threads#enumerating-threads The only thing I didn't try was whether you can actually access the contents of these threads without "resurrecting" them. But I've got told in the #663 discussion that this is possible, too. |
Beta Was this translation helpful? Give feedback.
-
Separate files all the way. It's a "side-discussion" not to interfere with the main channel topic. |
Beta Was this translation helpful? Give feedback.
-
What's the best way to export a bunch of threads separately right now? There's over 1,000 listed threads with downloads attached that I'm trying to save. One by one is not realistic. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
A PowerShell script I made for archiving threads that you get from the commands: $global:token = Get-Content ./bait.txt
$global:last = Get-Content ./last.txt
$time = Get-Date -Format "yyyy-MM-dd HH:mm"
$date = Get-Date -Format "yyyy-MM-dd"
$global:threads = "./threads2.txt"
$n = 0
foreach($line in Get-Content $threads){
dotnet DiscordChatExporter.Cli.dll export -c $line -t `"$global:token`" -f Json --after `"$global:last`" --media -o `"./backups/My Lovely Server/threads/$global:date/`"
$n = $n+1
}
Set-Content -Path ./last.txt -Value $time
The script will automatically iterate through each line (each line must contain exactly one ID and one ID only -- |
Beta Was this translation helpful? Give feedback.
-
Here's a script to pull a list of threads inside a forum channel. It'll ask you to put your auth token and target forum channel ID. https://gist.github.com/1011025m/6c2109cdb0178082aea1db4ddab585e9 |
Beta Was this translation helpful? Give feedback.
-
What's possible as of now?
Currently, there is no proper integration of threads or forum channels/their posts. However, you can still export threads/posts by passing their
channel ID
to the CLI.Things to be discussed
Should threads be rendered inside their parent channels or as separate files?
There has been a lot of discussion on that topic in the early comments of #663. Instead of listing pros and cons again, I recommend you read through the discussion over there, it evaluates a ton of important points. Personally, I'm in favor of just exporting them as separate channels. Firstly for simplicity's sake and secondly because that's pretty much how Discord treats them as well.
How will date ranges and partitioning be affected?
Well, that depends on the solution we go for. There's been some discussion with possible solutions being laid out in the early comments of the aforementioned issue.
Integration in the parent channel/forum channel in HTML exports
Look of the start of threads/posts in HTML exports
Currently, exported threads have a start that looks like this, while in Discord, the start of threads look like this
It gets a bit more complicated with posts, since they look like this.
Naming of exported threads and posts
Two ideas came to my mind:
Problems yet to solve
- As far as I know, there is no way of getting a list of archived threads from the API. This limitsexportguild
to only exporting channels and active threads.It's been pointed out to me that endpoints for this do exist.
Related issues
#663 Main discussion on rendering threads
#738 Make threads show up on the
channel
command#792 Shows threads in the GUI channel list
If any other problems that I've missed come up in this discussion, I might add them to this initial discussion post for the sake of completeness.
Beta Was this translation helpful? Give feedback.
All reactions