Allow sending images through feedback

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2021-01-16 09:10:58 +01:00
parent 93b278e86c
commit 40624528f9

View file

@ -51,6 +51,11 @@ class FeedbackCommand extends Command {
}
const channel = this.client.channels.resolve(feedbackChannel);
let Attachment = (message.attachments).array();
if (Attachment[0])
Embed.setImage(Attachment[0].url);
channel.send({embed: Embed});
message.channel.send('Your feedback has been sent!');