.
This commit is contained in:
parent
f284c8b9d5
commit
055d034f02
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue