I tried to repeat the "Registering slash commands" page on discord.js guide
Finally, i could get rid of all the errors, registered the command and then i started the bot, but when i tried to use the command in discord, i saw this, what is the problem ?
My deploy.commands.js file
My main.js file
My command ping.js file
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.I don't see an
interactionCreate
listener anywhere, so it seems you missed a vital step in the 'Command handling' section of the guideLemme check
Ye, looks like i missed it
Tysm, now it works