Fix imagedetect on a single reply message

This commit is contained in:
Essem 2022-10-12 22:23:16 -05:00
parent 0c08422555
commit 6fdc345f47
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 1 additions and 1 deletions

View File

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