From 016068d8da129a17c4841342b598f3c107aed58e Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 5 Mar 2020 22:02:42 +0100 Subject: [PATCH] If the quoted message contain an image shows it --- event/listeners/message.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event/listeners/message.js b/event/listeners/message.js index 56975a5e..58fa9a23 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -267,6 +267,8 @@ class messageListener extends Listener { .setTimestamp(); if (guild.id != message.guild.id) Embed.addField('In guild', guild.name, true); + let Attachment = (quote.attachments).array(); + if (Attachment[0]) Embed.setImage(Attachment[0].url); message.delete(); return message.channel.send(Embed);