bwmarrin / discordgo

(Golang) Go bindings for Discord
BSD 3-Clause "New" or "Revised" License
5.12k stars 816 forks source link

Get messages/posts of a forum thread #1538

Closed mlaggner closed 5 months ago

mlaggner commented 5 months ago

As I found out, we can read messages from a normal (text) channel and there is an endpoint for creating/managing a forum thread - but I miss the endpoint for reading all messages/posts from a forum thread. Is this not implemented or just not possible?

My use case is to dump all messages from a guild forum for an offline backup. My idea is to

Any help would be highly appreciated

FedorLap2006 commented 5 months ago

To get a list of forum posts, you can go through Active Guild Threads (keeping only the relevant channel) and List Public Archived Threads.

Although please note. As far as I'm aware, keeping data in this way (offline) - will violate Discord's developer ToS. As you need to provide a way for deletion of this data. (I'm not a lawyer though, so please consult folks at DDevs for this)

mlaggner commented 5 months ago

Many thanks.

As I am the main administrator of the discord server and this is a private bot, I do not think that there is any issue according to the ToS. Unfortunately discord itself is not able to offer some sort of disaster recovery (our server has been hacked and completely nuked and discord itself did not help in any way), we need to create our own backups to safe the tons of work we've spent in the content