Discord.js-Bot-Development
Discord.js-Bot-Development copied to clipboard
TypeError: Cannot read property 'forEach' of undefined. Episode 03
I agree. I looked over the code many times, but I can't find any problems except for that...
Yes, it is very strange...
Look for the array
before .forEach
which is being declared as an undefined
object. The array
before .forEach
must be defined.
.forEach can only be used in Arrays
Isn't that what I said 🐢