From 6fdc345f47616286f90f65cb04c4de3faefd92a6 Mon Sep 17 00:00:00 2001 From: Essem Date: Wed, 12 Oct 2022 22:23:16 -0500 Subject: [PATCH] Fix imagedetect on a single reply message --- utils/imagedetect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/imagedetect.js b/utils/imagedetect.js index 8fdb8b4..2cd6cd5 100644 --- a/utils/imagedetect.js +++ b/utils/imagedetect.js @@ -157,7 +157,7 @@ export default async (client, cmdMessage, interaction, options, extraReturnTypes } if (cmdMessage) { // check if the message is a reply to another message - if (cmdMessage.messageReference) { + if (cmdMessage.messageReference && !singleMessage) { const replyMessage = await client.rest.channels.getMessage(cmdMessage.messageReference.channelID, cmdMessage.messageReference.messageID).catch(() => undefined); if (replyMessage) { const replyResult = await checkImages(replyMessage, extraReturnTypes, video, sticker);