How would I go about trying to create a discord.js bot to fetch the thread id's in a channel.
How would I go about trying to create a discord.js bot to fetch the thread id's in a channel and output them either to the console or to a text file?
9 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! TextChannel#threads
A manager of the threads belonging to this GuildTextThreadManager#fetch()
Obtains a thread from Discord, or the channel cache if it's already available.
Use that and the other fetch methods on that class
Writing to console or file is up to you
I saw that, but I have no ideqa where to start, I have never done anything with discord.js before.
you may want to checkout the guide if you're new to just discord,js
if you don't know any js, (basic understanding is required as djs is a somewhat advanced library to use) #resources
I know some JavaScript.
Mostly web development.
checkout the guide