Error to create thread on my bot embed.
Hi everyone, I have a problem with the "startThread" option, which is normally suppose to allow me to create a thread on a message that I specify. The problem is that my IDE (VS Code) return me an error that's say "startThread in not a function" how can I start a thread without this error ?


5 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!I am in discord.js 14.19.3 and with node in 20.19.1 version.
if you looked at the docs, you would see that
<Interaction>#reply()
returns an InteractionCallbackResponse
, not a Message
object
the InteractionCallbackResponse
does not have a startThread
method, but it does have a resource
property which includes the message
property you can use
in the future, please do not crosspost your threads in other channelsOh sorry. I'll delete it.
Okay, thanks for your help. And sorry for the crosspost... 😅
And just for myself, did I need to make an async function with that or normal one can be fine ?
that's up to you, whether you want to use async/await or .then() callbacks