Keep overflow div scrolled to bottom EVEN IF user scrolls up

My question is similar to this question. But I want the scroll to go to bottom EVEN IF user scrolls up. The answers to the tagged question are working provided that scroll to bottom should should if user scrolls up.

I’ve written the below code which works UNLESS user scrolls up and it stays there even if content is added beneath.

setTimeout(() => {
    let d = document;
    d.querySelector(".chat-scroll").scrollTo(0, d.body.scrollHeight);
}, 100);