- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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
#eventFolder errors:
11 messages · Page 1 of 1 (latest)
you named the same variable twice in your for loop
Wait, my bad wrong error
^
ReferenceError: eventFolders is not defined
at module.exports (C:\Users\hitle\OneDrive\Desktop\discord_bot\src\handlers\eventHandler.js:8:31)
at Object.<anonymous> (C:\Users\hitle\OneDrive\Desktop\discord_bot\src\index.js:14:1)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49```
This is the error
this is djs releated, caz i m doing a bot
i'm quite new to JS and TS
Read #rules , just because you use djs doesnt mean everything is related to djs
I'd recommend checking out #resources first and learn the basics of js