→ WoW API
Adds or removes a player to or from the friends list.
- string - The name of the player to add or remove.
- string - (Required) The note in the friends frame.
- If the player is already on your friends list, the player will be removed regardless of whether you pass
notesas the second argument.
- Patch 8.1.0 (2018-12-11): Moved to C_FriendList. The former alias AddOrRemoveFriend is deprecated and will be removed in the following expansion.