Delete original message

This commit is contained in:
loicbersier 2020-02-21 18:59:18 +01:00
parent 8c3f193163
commit 7cc57629cf

View file

@ -108,7 +108,8 @@ class posterCommand extends Command {
console.error(err); console.error(err);
return message.channel.send('An error just occured! is it a static image?'); return message.channel.send('An error just occured! is it a static image?');
} }
return message.channel.send({files: [output]}) message.delete();
return message.channel.send(`Made by ${message.author.username}`,{files: [output]})
.catch(() => { .catch(() => {
return message.channel.send('The image is too big to fit on discord!'); return message.channel.send('The image is too big to fit on discord!');
}); });