I have a error and don't know how to fix it.
I copied the code from github and now I get a error why?
7 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 staff"The code from github" probably expects all your command files to be in directories that are within
/commands
, which is why it's expecting ping.js
to be a directory and throwing an error since it's a file insteadöhm I addet in the /command folder
Its the wrong way to do that?
expects all your command files to be in directories that are within /commands
hmmm 😂 I don't realy understand I understand that the cmd is looking for files in /commands
And there is one the ping.js
Hmmm I think I understand something wrong
In the /command folder I create a new folder and add the ping.js
wait i test my idea
looolll xD it worked
all is fine ty