Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
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[]
Patch 9.1.5 (2021-11-02): Protected when called from a (macro) script.
Patch 8.1.0 (2018-12-11): Moved to C_FriendList.AddFriend()
[1]
Patch 2.4.0 (2008-03-25): Added notes
argument.[2]
Patch 1.0.0 (2004-10-08): Added as AddFriend()