TypeScript .getSubcommand() issue
Hello there. I'll make this as short as possible. I am starting to port over my code to TypeScript for the sake of making my development process much faster and save myself from unecessary bugs. While porting over my base classes, I came across an issue. For some reason, the
.getSubcommand()
function is highlighted red. Not sure what I can do. A picture of what I'm talking about is attached. I'll send the code in another message since I don't have enough space here. Thank you for your time and help, they are truly appreciated.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!
Ah, I see. I'll try that and send an update here.
Yep. It works perfectly. Thank you for the help!