@ -31,12 +31,22 @@ class EvalCommand extends Command {
letAttachment=(message.attachments).array();
letAttachment=(message.attachments).array();
if(Attachment[0]){
if(Attachment[0]){
this.client.users.get(user).send(`**Message from the dev:**\n${text}\n${Attachment[0].url}\n**If you wish to respond use the feedback command**`);
this.client.users.get(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`,{files:[Attachment[0].url]})
message.channel.send(`DM sent to ${user.username}`);
.then(()=>{
returnmessage.channel.send(`DM sent to ${user.username}`);
})
.catch(()=>{
returnmessage.channel.send(`Could not send a DM to ${user.username}`);
});
}
}
else{
else{
this.client.users.get(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`);
this.client.users.get(user.id).send(`**Message from the dev:**\n${text}\n**If you wish to respond use the feedback command**`)
message.channel.send(`DM sent to ${user.username}`);
.then(()=>{
returnmessage.channel.send(`DM sent to ${user.username}`);
})
.catch(()=>{
returnmessage.channel.send(`Could not send a DM to ${user.username}`);