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
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!
d.js docs
d.js docs11mo ago
property TextChannel#threads A manager of the threads belonging to this method GuildTextThreadManager#fetch() Obtains a thread from Discord, or the channel cache if it's already available.
monbrey
monbrey11mo ago
Use that and the other fetch methods on that class Writing to console or file is up to you
Kay
KayOP11mo ago
I saw that, but I have no ideqa where to start, I have never done anything with discord.js before.
dank
dank11mo ago
you may want to checkout the guide if you're new to just discord,js
d.js docs
d.js docs11mo ago
guide Home: What's new read more
dank
dank11mo ago
if you don't know any js, (basic understanding is required as djs is a somewhat advanced library to use) #resources
Kay
KayOP11mo ago
I know some JavaScript. Mostly web development.
dank
dank11mo ago
checkout the guide
Want results from more Discord servers?
Add your server