/friend Player.1234
/unfriend Player.1234Adds a player to your contacts list or removes them. Contacts are account-wide, so you see them online regardless of which character either of you is on.
The three party commands that matter: invite someone, ask to join someone, or leave the party you are in. All three work by account name.
/invite Player.1234
/join Player.1234
/leave