C_FriendList.AddFriend

From Warcraft Wiki
Jump to navigation Jump to search

Adds a friend to your friend list.

C_FriendList.AddFriend(name [, notes])

Arguments

name
string - The name of the player you would like to add.
notes
string? - The note that will show in your friend list.

Details

  • You can have a maximum of 100 people on your friends list at the same time.
  • The player being added does not need to be online for this to work.

Patch changes

Shadowlands Patch 9.1.5 (2021-11-02): Protected when called from a (macro) script.
Battle for Azeroth Patch 8.1.0 (2018-12-11): Moved to C_FriendList.AddFriend()[1]
Bc icon.gif Patch 2.4.0 (2008-03-25): Added notes argument.[2]
WoW Icon update.png Patch 1.0.0 (2004-10-08): Added as AddFriend()