I am new to JavaScript, am I was trying to dissect an embedded message. Here\'s my code, it runs fine for a few mins, works accordingly but idk what goes wrong.
It means inside message.embeds[i] there is at least one element without title property.
message.embeds[i]
You should check first if message.embeds[i].title exists and perform other operations after the check.
message.embeds[i].title