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
d.js toolkit
d.js toolkit17mo ago
- 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.
duck
duck17mo ago
I don't see an interactionCreate listener anywhere, so it seems you missed a vital step in the 'Command handling' section of the guide
Suspicious Man
Suspicious ManOP17mo ago
Lemme check
d.js docs
d.js docs17mo ago
guide Creating Your Bot: Receiving command interactions read more
Suspicious Man
Suspicious ManOP17mo ago
Ye, looks like i missed it Tysm, now it works
Want results from more Discord servers?
Add your server