Modded discord clients have been around for quite while. But indeed, the threat of being banned deters most people and if just a handful of people use a modded client discord doesnt care probably.
it's borderline (or completely ?) illegal to threaten users to ban them if they choose to use their right to mass-delete their previous messages.