Not seeing routes on docs
Hi,
The docs and guide use this piece of code for registering slash commands:
Yet the docs have no class Routes, and my IDE (Webstorm) keeps flagging it as an unknown type. Am I missing something?
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!
- ✅
Marked as resolved by OP14.14.1
These come from the discord-api-types module: https://discord-api-types.dev/api/discord-api-types-v10#Routes
However theyre included with discord.js
Webstorm really hates discord.js for some reason
oh how awesome!
Thank you!