Help me with an unexpected error!!!
my D:\testtestbot\deploy-commands.js: https://sourceb.in/o6TK1zBkQJ and my D:\testtestbot\commands\8-ball.js: https://sourceb.in/nzmSq84Hhi
18 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!the path is wrong
it is correct
i think
but what is wrong?
the path is not correct
as I just pointed out
I t
I am pretty sure it is correct
great
but what is the problem with it?
it should be
./commands/8-ball.js
, yet it's commands/8-ball.js
in which file?
in your deploy-commands file?
ok I'll will try it now. 1 min
in which line?
19 presumably?
so is it D:\testtestbot\deploy-commands.js:19?
the 19th line: commandFiles.push(path.join(dir, file.name));
yes
so how should I correct this line?
you tell me
not really djs related
...
sorry I don't really know that how should I fix this or discord.js problem is it.
so what should I do?
should I close this chat and open else or what?
pls answer
commands/8-ball.js refers to the module "commands" not the directory "commands".
like Capybacca pointed out, its not really a djs problem.