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.tim90916mo ago
prod.tim909
prod.tim90916mo ago
@Helpers @Moderators
vladdy
vladdy16mo ago
Please only ping the roles if its been a while after you sent the message and you haven't received a response
Mark
Mark16mo ago
Moderators are not meant to be pinged for support issues
vladdy
vladdy16mo 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.tim90916mo ago
I did not got any errors. the compiler is already messing with my code that is how it looks now
prod.tim909
prod.tim90916mo ago
vladdy
vladdy16mo ago
You do, since those squiggly lines under the things report issues
prod.tim909
prod.tim90916mo ago
vladdy
vladdy16mo ago
Tells you the error You don't provide type there Also Well yeah that's all
prod.tim909
prod.tim90916mo ago
prod.tim909
prod.tim90916mo ago
prod.tim909
prod.tim90916mo ago
could u send me what to do I dont find any good documentation to that topic
vladdy
vladdy16mo ago
The error is pretty clear For message you need to provide a string, or message options Like you would for .send
kyra
kyra16mo ago
(Also, nothing of this is Sapphire related, this is all Discord.js)
prod.tim909
prod.tim90916mo 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
Favna16mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.