Listing entries in a ForumChannel?
I am wanting to list entries in a ForumChannel, but I am not sure how to go about it? I have a topic with two forum threads (if that is the right terminology?), but the following code returns 0:
I am trying to list the threads in a ForumChannel, their details and messages, but I am not sure how to go about his?
- Discord.js 14.17.3
- Node v22.13.0
5 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 OP:method: GuildForumThreadManager#fetch()
[email protected]
Obtains a thread from Discord, or the channel cache if it's already available.
I had looked at this, but it only returns one thread. Not the list of threads in the channel.
:method: GuildForumThreadManager#fetchActive()
[email protected]
Obtains all active threads in the channel.Turns out the issue was archived threads. This works for me, as a test bed: