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
d.js toolkit
d.js toolkit2y ago
- 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
Squid
Squid2y ago
"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
Nicolas Matheisen
öhm I addet in the /command folder
No description
Nicolas Matheisen
Its the wrong way to do that?
Squid
Squid2y ago
expects all your command files to be in directories that are within /commands
Nicolas Matheisen
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

Did you find this page helpful?