diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index 28c3805..b7f5405 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -190,7 +190,7 @@ async function findSuitableImage(msg) { } else { for (const embed of msg.embeds) { if (!embed.url) continue; - if (embed.url && /(jpe?g|png|gif|webp)$/.test(url)) { + if (embed.url && /(jpe?g|png|gif|webp)$/.test(embed.url)) { out.url = embed.url; } else if (embed.image) { out.url = embed.image.url;