Discord.js-Bot-Development icon indicating copy to clipboard operation
Discord.js-Bot-Development copied to clipboard

TypeError: Cannot read property 'forEach' of undefined. Episode 03

Open CT-Shadow opened this issue 4 years ago • 5 comments

CT-Shadow avatar Mar 24 '20 21:03 CT-Shadow

I agree. I looked over the code many times, but I can't find any problems except for that...

ItzWillie avatar Mar 28 '20 13:03 ItzWillie

Yes, it is very strange...

CT-Shadow avatar Mar 31 '20 18:03 CT-Shadow

Look for the array before .forEach which is being declared as an undefined object. The array before .forEach must be defined.

PantheraRed avatar Jun 05 '20 07:06 PantheraRed

.forEach can only be used in Arrays

bagelwastaken avatar Jul 17 '21 08:07 bagelwastaken

Isn't that what I said 🐢

PantheraRed avatar Jul 17 '21 11:07 PantheraRed