From 40624528f951d060e38cb5704de9d691748765e4 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 16 Jan 2021 09:10:58 +0100 Subject: [PATCH] Allow sending images through feedback Signed-off-by: loicbersier --- commands/utility/feedback.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/utility/feedback.js b/commands/utility/feedback.js index ae2f210..1ac1407 100644 --- a/commands/utility/feedback.js +++ b/commands/utility/feedback.js @@ -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!');