You more or less just did an exchange.
Actually flushing the fluid out with a machine would have killed it for sure.
It's likely still hurt pretty bad if it was slipping and slamming into gear, but you might have saved it for a little while. Just be prepared for the worst.