1
0
Fork 0

If the quoted message contain an image shows it

akairo
loicbersier 4 years ago
parent 4b4b31d80d
commit 016068d8da

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

Loading…
Cancel
Save