Guard the tongue early before joking or venting turns into sin.
Stop typing and ask yourself whether you would say the same words if that person were in front of you.
Change the topic, leave the thread, or answer with a neutral line that protects everyone's dignity.
Ask Allah to forgive your tongue and make a plan to repair harm if you clearly crossed a line.