Fix imagedetect on a single reply message
This commit is contained in:
parent
0c08422555
commit
6fdc345f47
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue