forked from Supositware/Haha-Yes
Allow sending images through feedback
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
93b278e86c
commit
40624528f9
1 changed files with 5 additions and 0 deletions
|
@ -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!');
|
||||
|
|
Loading…
Reference in a new issue