on message message delete code example Example: .then message.delete message.reply('Invalid command') .then(msg => { msg.delete(10000) })