Wowpedia
Advertisement
Shadowlands-Icon-Inline.png
Bc icon.gif
C_FriendList.AddOrRemoveFriend
+ 8.1.0 / 1.13.2   Townlong-Yak Globe.png  Townlong-Yak BAD.png  ProfIcons engineering.png
AddOrRemoveFriend
+ 3.1.0   - 8.1.0   Townlong-Yak Globe.png  Wowprogramming.png

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

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

Arguments

name 
string - The name of the player to add or remove.
notes 
string - (Required) The note in the friends frame.

Details

  • If the player is already on your friends list, the player will be removed regardless of whether you pass notes as the second argument.
Advertisement