Does anyone have the starter code from the guide but in typescript?
I wrote my bot in javascript, and have now been trying to convert it to typescript. I don't feel like I have a firm grasp on all the typings and can't figure what is which type. I have been especially having trouble converting the event handling code.
7 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 OPts should infer most types
other than that, the guide provides the types
so does dtypes
ok I think am sort of lost on where the guide provides the types
I wasnt sure what to put for ...args, so i just put any
@wolvinny 🌈
yes, in this case that is correct
since it can be anything
ok
thanks