Where can I find the options for creating a thread?

this guide page https://discordjs.guide/popular-topics/threads.html#thread-related-gateway-events has
const thread = await channel.threads.create({
name: 'food-talk',
autoArchiveDuration: 60,
reason: 'Needed a separate thread for food',
});
const thread = await channel.threads.create({
name: 'food-talk',
autoArchiveDuration: 60,
reason: 'Needed a separate thread for food',
});
When i look up this method: https://discord.js.org/#/docs/discord.js/14.8.0/class/GuildTextThreadManager?scrollTo=create then click "thread create options", it brings me to this page: https://discord.js.org/#/docs/discord.js/14.8.0/typedef/ThreadCreateOptions but this only lists "startMessage", "type", "invitable" Where are the other options? Where am I supposed to look? What did I do wrong?
4 Replies
d.js toolkit
d.js toolkit15mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
SpecialSauce
SpecialSauce15mo ago
In the ThreadCreateOptions there’s additional params on the StartThreadOptions linked on that page
skeddles
skeddles15mo ago
oh okay, i see them now. completely confused as to how "StartThreadOptions" and "ThreadCreateOptions" are different though... or why it's collapsed or hidden on another page... makes the docs much harder to understand...
SpecialSauce
SpecialSauce15mo ago
They’re split because there are other uses for StartThreadOptions where ThreadCreateOptions do not apply