forked from Supositware/Haha-Yes
delete message only if it can send message
This commit is contained in:
parent
68dcc1875c
commit
b60057e110
1 changed files with 4 additions and 2 deletions
|
@ -270,8 +270,10 @@ class messageListener extends Listener {
|
|||
let Attachment = (quote.attachments).array();
|
||||
if (Attachment[0]) Embed.setImage(Attachment[0].url);
|
||||
|
||||
return message.channel.send(Embed)
|
||||
.then(() => {
|
||||
message.delete();
|
||||
return message.channel.send(Embed);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue