WoW API: AddOrRemoveFriend

From AddOn Studio
Revision as of 09:05, 9 March 2010 by WoWWiki>Starlightblunder (formatting clean up)
Jump to navigation Jump to search

WoW API < AddOrRemoveFriend

Adds or removes player to or from the friends list.

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

Arguments

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

Notes

  • 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.