Issue with types
So I created a function for myself to manipulate the content of my responses, but i'm having issues with that:
and this is how im using it:
But I get the following error:
I'm not that much of an expert in ts, so this error has made me stumped
2 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!
- ✅
Marked as resolved by staff- DJS v14.4.1
- dont know if this is related, but i'll try to give it a shot here
I guess my best bet is to make the function return the manipulated data, then use that for my interaction.reply?
The thing is i need to specifiy what method it could be, like it could message.reply, channel.send, interaction.editReply
I see
Then it makes more sense for the function to just return the manipulated embed / content instead