API C_FriendList.AddOrRemoveFriend

From Wowpedia
Jump to: navigation, search

Adds or removes a player to or from the friends list.

C_FriendList.AddOrRemoveFriend("name", "notes")


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 notes as the second argument.

Patch changes

  • Battle for Azeroth 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.

See also