The expected type comes from property 'content' which is declared here on type 'InteractionReplyOpti
like this it don't cause any problems but when i specify the type like this
it give me this error
4 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!Yes exactly, it give me the error when i try to reply using that string
Yes
Ok what should i pass instead of null, i can't pass en empty string tho
I remember there was a thing you can pass i forget about it but like /a thing here
So I'm replying before, i want to remove the content and send embeds
It depends that why I'm checking, sometimes i reply sometimes not
Alright thanks
i did something like this content: type === "reply" ? "hello" : null
but it still causing an error
yeah
i fixed it using this
_ _
thanks anyway