WoW:API AddOrRemoveFriend: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(formatting clean up)
m (Move page script moved page API AddOrRemoveFriend to API AddOrRemoveFriend without leaving a redirect)
 
(No difference)

Latest revision as of 04:45, 15 August 2023

WoW API < AddOrRemoveFriend

Adds or removes player to or from the friends list.

AddOrRemoveFriend("player"[, "note"])

Arguments[edit]

player
String - A player's name.
note
String - A note to add to the friends frame for player.

Notes[edit]

  • If player is already on your friends list when you call this function, the player will be removed regardless of whether you pass a note as the second argument.