From a74e6597f9378980db83138dbab04c81fecaed89 Mon Sep 17 00:00:00 2001 From: Essem Date: Mon, 27 Apr 2026 19:01:10 -0500 Subject: [PATCH] fix: Fix issues in Select Image Whoops! --- commands/message/select-image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/message/select-image.js b/commands/message/select-image.js index 47ffd7fa..de76a902 100644 --- a/commands/message/select-image.js +++ b/commands/message/select-image.js @@ -13,12 +13,12 @@ class SelectImageCommand extends Command { throw e; }); this.success = false; - if (typeof mediaArr === "string") return image; + if (typeof mediaArr === "string") return mediaArr; if (mediaArr.length === 0) return this.getString("image.couldNotFind"); let final; for (const media of mediaArr) { - const type = await request(new URL(media.path), ["image", "audio"], true).catch(() => {}); + const type = await request(new URL(media.path), ["image"], true).catch(() => {}); if (type) { final = media; break; -- 2.51.2