If the quoted message contain an image shows it

This commit is contained in:
loicbersier 2020-03-05 22:02:42 +01:00
parent 4b4b31d80d
commit 016068d8da

View file

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