How to Create Threads?

I dont get how to create threads programmatically. Please help
Solution:
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Jump to solution
17 Replies
prod.tim909
prod.tim9092y ago
prod.tim909
prod.tim9092y ago
@Helpers @Moderators
vladdy
vladdy2y ago
Please only ping the roles if its been a while after you sent the message and you haven't received a response
Mark
Mark2y ago
Moderators are not meant to be pinged for support issues
vladdy
vladdy2y ago
Also you're not using the correct types for your method For starters you probably wanted to use Message not MessagePayload Also would help if you reported the errors you received
prod.tim909
prod.tim9092y ago
I did not got any errors. the compiler is already messing with my code that is how it looks now
prod.tim909
prod.tim9092y ago
vladdy
vladdy2y ago
You do, since those squiggly lines under the things report issues
prod.tim909
prod.tim9092y ago
vladdy
vladdy2y ago
Tells you the error You don't provide type there Also Well yeah that's all
prod.tim909
prod.tim9092y ago
prod.tim909
prod.tim9092y ago
prod.tim909
prod.tim9092y ago
could u send me what to do I dont find any good documentation to that topic
vladdy
vladdy2y ago
The error is pretty clear For message you need to provide a string, or message options Like you would for .send
kyra
kyra2y ago
(Also, nothing of this is Sapphire related, this is all Discord.js)
prod.tim909
prod.tim9092y ago
okay yeah I don't know how I can fix my code. I just want to create a thread in my forum channel
Solution
Favna
Favna2y ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Want results from more Discord servers?
Add your server