Reference Error.
There is an issue in my command handler and no matter what I change it won't work. Code and Error Is attached.
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!well, you do indeed never define slashcommands
or well, rather, is it defined on your client instance
there is actually no need for a client at all since thats the point of REST, it removes the need to run it every time your bot starts
I tried before with slashcommands mentioned but it didnt work so I watched something on youtube for it and they put commandarray instead it just.. doesnt work still
yeah you should follow the guide instead of a random yt tutorial