1message.reply('Invalid command')
2 .then(msg => {
3 msg.delete({ timeout: 20000 /*time unitl delete in milliseconds*/});
4 })
5 .catch(/*Your Error handling if the Message isn't returned, sent, etc.*/);
1message.channel.send("Hello World!").then(msg=>msg.delete({timeout:"2000"/*Time until delete in milliseconds*/})