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
- 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 OPForum 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
Appreciated!