How can I reference a Forum Format Post?

I am currently developing a bot to automatically delete forum posts for me, so I would like to know how to reference a forum post from the moment it is created and then delete that specific forum post a certain amount of time later.
3 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
SpecialSauce
SpecialSauce11mo ago
Forum posts are threads. You could fetch the threads with <Channel>.threads.fetch(<ThreadId>) and use <ThreadChannel>.delete() whenever you would like to delete it. You could listen to the threadCreate event if you want to do something when it’s created
Rxy
RxyOP11mo ago
Appreciated! pixelHeartAnimated
Want results from more Discord servers?
Add your server