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
d.js toolkit
d.js toolkit14mo ago
- 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 OP
treble/luna
treble/luna14mo ago
ts should infer most types other than that, the guide provides the types so does dtypes
Daricide
DaricideOP14mo ago
ok I think am sort of lost on where the guide provides the types
Daricide
DaricideOP14mo ago
No description
Daricide
DaricideOP14mo ago
I wasnt sure what to put for ...args, so i just put any @wolvinny 🌈
treble/luna
treble/luna14mo ago
yes, in this case that is correct since it can be anything
Daricide
DaricideOP14mo ago
ok thanks
Want results from more Discord servers?
Add your server