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) {
 | 
					  if (cmdMessage) {
 | 
				
			||||||
    // check if the message is a reply to another message
 | 
					    // 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);
 | 
					      const replyMessage = await client.rest.channels.getMessage(cmdMessage.messageReference.channelID, cmdMessage.messageReference.messageID).catch(() => undefined);
 | 
				
			||||||
      if (replyMessage) {
 | 
					      if (replyMessage) {
 | 
				
			||||||
        const replyResult = await checkImages(replyMessage, extraReturnTypes, video, sticker);
 | 
					        const replyResult = await checkImages(replyMessage, extraReturnTypes, video, sticker);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue