14 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!Hello, guys! I met the error ENOTDIR, I do not understand why the test.js file MUST be a directory?
- File paths explained in detail: learn more
-
.
refers to the current directory
- ..
refers to the parent directory
- Node path module: learn more..
you are trying to use readdirSync on a file.
use readFileSync with encoding instead.
What does readdirSync means??
readdirSync is for reading the folders/directories
readFileSync is for reading the file(s)
Do u know where its stored?
Bot.js?
perhaps, it is coming from your handleCommands.js
Oh ok
Lemme check
line 35 to be specific
Thxxx
Lemme ss for u
What to change
Do i change the path}/$folder to file?