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.
I think this code can fix this problem.
bot.on('message', (message) => { for (var i = 0; i < message.embeds.length; i++) { if (message.embeds[i] && message.embeds[i].title.includes("text!")) { message.channel.send('reply') } } })