This commit is contained in:
Cynthia Foxwell 2022-12-03 12:47:28 -07:00
parent f284c8b9d5
commit 055d034f02
1 changed files with 1 additions and 1 deletions

View File

@ -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;