slash command not showing
Hey guy’s, im learning djs i needed help regarding slash commands
I made a slash command and it not showing i will send my code in few mins i will appreciate it if you can tell me what did i do wrong
17 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!
- ✅
Marked as resolved by OPAnd sorry if this is wrong place
As i mentioned im very new to djs i just started.
Btw i named this file
“slash-main.js” if that’s matter
did it error?
No
send console out out
output*
Im using replit if that’s important 😅
One second
This?

When i turn on the bot it will send no error
I think there’s an option for slash commands in discord sev portal?
it's a separate file, you need to run
node <filename>
for it to executeOhh
In shell i tried that too
Lemme show

the error tells you what's wrong
It said “)” this is missing
But i don’t understand where is missing
yes, your syntax is incorrect
it tells you where it's missing - after the arguments in your function
function(arg1, arg2, ...)
:blobsweats:
Let me try to see 😅
i suggest you brush up on your js skills, these are fundamentals. #resources has several written guides and other sites, and there is #other-js-ts and #useful-servers for general servers like tcd and tph as well
Thanks i will read them!
Hey mark, thanks for helping me i end up fixing the code
I really appreciate your help mark and steve <33