slash cmd doesn't work

hey! i have recently created a bot, but the ping slash cmd don't work, can you help me?
15 Replies
d.js toolkit
d.js toolkitβ€’2y 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.
d.js docs
d.js docsβ€’2y ago
To help you we need more information: - What are you trying to do? - What is your code? - What errors and debug logs do you have?
𝐿πŸ₯𝑅𝒯π’ͺ𝒩
okay so, i've actually tried to run the bot but he doesn't show up any error so here the code
treble/luna
treble/lunaβ€’2y ago
well, your callback function will never be called since you never reference it, and does your event fire at all and did you deploy your commands
𝐿πŸ₯𝑅𝒯π’ͺ𝒩
so how can i fix it?
treble/luna
treble/lunaβ€’2y ago
did you deploy your commands
treble/luna
treble/lunaβ€’2y ago
and does your event fire at all
𝐿πŸ₯𝑅𝒯π’ͺ𝒩
so actually the callback event is useless?
treble/luna
treble/lunaβ€’2y ago
unless you create an event handler, yes
𝐿πŸ₯𝑅𝒯π’ͺ𝒩
ya i have it actually
treble/luna
treble/lunaβ€’2y ago
but you dont use it
𝐿πŸ₯𝑅𝒯π’ͺ𝒩
yea probably i'll check thx
Want results from more Discord servers?
Add your server