I've seen a couple of those moving on to Discord, I guess it could be related to the lack of "social" features like this.
If Slack is being used as an office communication system, the company needs to make sure that people treat it as part of their office (like corporate e-mail), not as some kind of social network.
Sexual harassment often lacks sufficient documentation, and that's precisely why HR is usually not seen as an ally to the victim.
This also makes it scary for HR, since if they do nothing and the victim sues, the Slack messages could turn up during discovery.
(I'm also guessing that this kind of behavior suggests that the aggressor is not of higher rank. Someone with real power over the victim probably wouldn't just stalk them on Slack, and any manager would be acutely aware that you don't want to say things like that in writing.)