C_FriendList.AddOrRemoveFriend

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_FriendList.AddOrRemoveFriend TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 8.1.0 / 1.13.2
Wowprogramming.png  BTNTemp.png AddOrRemoveFriend + 3.1.0

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.