Commit 40624528 authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

Allow sending images through feedback


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent 93b278e8
......@@ -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!');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment