WoW API: AddOrRemoveFriend

Revision as of 03:57, 23 September 2009 by WoWWiki>Egingell (Created page with '{{wowapi}} Adds or removes ''friend'' to or from the friends list. AddOrRemoveFriend(''player''[, ''note'']) == Arguments == :;player : String - A player's name. :;note : Str…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Returns

None

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.