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 toolkit12mo 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
Nicolas Matheisen
Nicolas MatheisenOP12mo ago
No description
Squid
Squid12mo 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
Nicolas MatheisenOP12mo ago
öhm I addet in the /command folder
No description
Nicolas Matheisen
Nicolas MatheisenOP12mo ago
Its the wrong way to do that?
Squid
Squid12mo ago
expects all your command files to be in directories that are within /commands
Nicolas Matheisen
Nicolas MatheisenOP12mo ago
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
Want results from more Discord servers?
Add your server