What prevents Discord from doing a synchronized change of their web client and server APIs and using accesses to the old API to detect Ripcord users, then banning them?
Nothing, but in doing so, they'll likely ban non-Ripcord uses who are using outdated clients as well, followed by a bunch of support tickets by confused users.