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
d.js toolkit
d.js toolkit16mo 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!
treble/luna
treble/luna16mo ago
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
CrypLemonade
CrypLemonadeOP16mo ago
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
treble/luna
treble/luna16mo ago
yeah you should follow the guide instead of a random yt tutorial
Want results from more Discord servers?
Add your server