diff --git a/utils/checkRoles.js b/utils/checkRoles.js index 635e409..9fac2fe 100644 --- a/utils/checkRoles.js +++ b/utils/checkRoles.js @@ -1172,10 +1172,11 @@ client.on("ready", async () => { for (const embed of embeds) { if ( latestChainIdsMessages.find( - (m) => - m.data.description.replace(/\n/g, "") == - embed.data.description.replace(/\n/g, "") - ) + (m) => { + const description = m.data.description.split("\n"); + const embedDescription = embed.data.description.split("\n"); + return description.every((line) => embedDescription.includes(line)); + }) ) { console.log("chain embed is already the same"); continue;