WowAddons

World of Warcraft Forever API · C_FriendList.md, for your AI

C_FriendList

32 functions, 27 events, 4 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_FriendList.AddFriend

C_FriendList.AddFriend(name, [notes])

Arguments

namecstring
notescstring may be nil

C_FriendList.AddIgnore

added = C_FriendList.AddIgnore(name)

Arguments

namecstring

Returns

addedbool

C_FriendList.AddOrDelIgnore

C_FriendList.AddOrDelIgnore(name)

Arguments

namecstring

C_FriendList.AddOrRemoveFriend

C_FriendList.AddOrRemoveFriend(name, notes)

Arguments

namecstring
notescstring

C_FriendList.DelIgnore

removed = C_FriendList.DelIgnore(name)

Arguments

namecstring

Returns

removedbool

C_FriendList.DelIgnoreByIndex

C_FriendList.DelIgnoreByIndex(index)

Arguments

indexluaIndex

C_FriendList.GetFriendInfo

info = C_FriendList.GetFriendInfo(name)

May return nothing.

Arguments

namecstring

Returns

infoFriendInfo

C_FriendList.GetFriendInfoByIndex

info = C_FriendList.GetFriendInfoByIndex(index)

May return nothing.

Arguments

indexluaIndex

Returns

infoFriendInfo

C_FriendList.GetIgnoreName

name = C_FriendList.GetIgnoreName(index)

Arguments

indexluaIndex

Returns

namestring may be nil

C_FriendList.GetNumFriends

numFriends = C_FriendList.GetNumFriends()

Returns

numFriendsnumber

C_FriendList.GetNumIgnores

numIgnores = C_FriendList.GetNumIgnores()

Returns

numIgnoresnumber

C_FriendList.GetNumOnlineFriends

numOnline = C_FriendList.GetNumOnlineFriends()

Returns

numOnlinenumber

C_FriendList.GetNumWhoResults

numWhos, totalNumWhos = C_FriendList.GetNumWhoResults()

Returns

numWhosnumber
totalNumWhosnumber

C_FriendList.GetSelectedFriend

index = C_FriendList.GetSelectedFriend()

Returns

indexluaIndex may be nil

C_FriendList.GetSelectedIgnore

index = C_FriendList.GetSelectedIgnore()

Returns

indexluaIndex may be nil

C_FriendList.GetWhoInfo

info = C_FriendList.GetWhoInfo(index)

May return nothing.

Arguments

indexluaIndex

Returns

infoWhoInfo

C_FriendList.GetWhoRaceFilters

filters = C_FriendList.GetWhoRaceFilters()

Returns

filtersWhoFilter[]

C_FriendList.IsFriend

isFriend = C_FriendList.IsFriend(guid)

Arguments

guidWOWGUID

Returns

isFriendbool

C_FriendList.IsIgnored

isIgnored = C_FriendList.IsIgnored(token)

Arguments

tokencstring

Returns

isIgnoredbool

C_FriendList.IsIgnoredByGuid

isIgnored = C_FriendList.IsIgnoredByGuid(guid)

Arguments

guidWOWGUID

Returns

isIgnoredbool

C_FriendList.IsLegacyFriendSystemEnabled

isLegacyFriendSystemEnabled = C_FriendList.IsLegacyFriendSystemEnabled()

Returns

isLegacyFriendSystemEnabledbool

C_FriendList.IsOnIgnoredList

isIgnored = C_FriendList.IsOnIgnoredList(token)

Arguments

tokencstring

Returns

isIgnoredbool

C_FriendList.RemoveFriend

removed = C_FriendList.RemoveFriend(name)

Arguments

namecstring

Returns

removedbool

C_FriendList.RemoveFriendByIndex

C_FriendList.RemoveFriendByIndex(index)

Arguments

indexluaIndex

C_FriendList.SendWho

C_FriendList.SendWho(filter, [origin], [filters])

Arguments

filtercstring
originnumber may be nil
filtersSendWhoFilters may be nil

C_FriendList.SetFriendNotes

found = C_FriendList.SetFriendNotes(name, notes)

Arguments

namecstring
notescstring

Returns

foundbool

C_FriendList.SetFriendNotesByIndex

C_FriendList.SetFriendNotesByIndex(index, notes)

Arguments

indexluaIndex
notescstring

C_FriendList.SetSelectedFriend

C_FriendList.SetSelectedFriend(index)

Arguments

indexluaIndex

C_FriendList.SetSelectedIgnore

C_FriendList.SetSelectedIgnore(index)

Arguments

indexluaIndex

C_FriendList.SetWhoToUi

C_FriendList.SetWhoToUi(whoToUi)

Arguments

whoToUibool

C_FriendList.ShowFriends

C_FriendList.ShowFriends()

C_FriendList.SortWho

C_FriendList.SortWho(sorting, [ascending])

Arguments

sortingcstring
ascendingbool may be nil

Events

BATTLE_NET_FRIEND_TAG_ENABLED_STATUS_UPDATED

No payload.

BATTLE_NET_TITLE_FRIEND_CUSTOM_NAME_ENABLED_STATUS_UPDATED

No payload.

BN_BLOCK_FAILED_TOO_MANY

blockTypecstring

BN_BLOCK_LIST_UPDATED

No payload.

BN_CHAT_WHISPER_UNDELIVERABLE

senderIDnumber

BN_CONNECTED

suppressNotificationbool default false

BN_CUSTOM_MESSAGE_CHANGED

idnumber may be nil

BN_CUSTOM_MESSAGE_LOADED

No payload.

BN_DISCONNECTED

resultbool
suppressNotificationbool default false

BN_FRIEND_ACCOUNT_OFFLINE

friendIdnumber
isCompanionAppbool default false

BN_FRIEND_ACCOUNT_ONLINE

friendIdnumber
isCompanionAppbool default false

BN_FRIEND_INFO_CHANGED

friendIndexluaIndex may be nil

BN_FRIEND_INVITE_ADDED

accountIDnumber

BN_FRIEND_INVITE_LIST_INITIALIZED

listSizenumber

BN_FRIEND_INVITE_REMOVED

No payload.

BN_FRIEND_LIST_SIZE_CHANGED

accountIDnumber may be nil

BN_INFO_CHANGED

No payload.

BN_REQUEST_FOF_SUCCEEDED

No payload.

CONFIRM_BATTLE_NET_FRIEND_INVITE_SHOW

namecstring
friendLevelBattleNetFriendLevel

FRIENDLIST_UPDATE

No payload.

IGNORELIST_UPDATE

No payload.

LEGACY_FRIEND_SYSTEM_STATUS_UPDATED

No payload.

MUTELIST_UPDATE

No payload.

NEW_MATCHMAKING_PARTY_INVITE

No payload.

REJECTED_MATCHMAKING_PARTY_INVITE

namecstring

SOCIAL_UI_FRIENDS_LIST_SYSTEM_STATUS_UPDATED

No payload.

WHO_LIST_UPDATE

No payload.

Tables

FriendInfo structure

connectedbool
namestring
classNamestring may be nil
areastring may be nil
notesstring may be nil
guidWOWGUID
levelnumber
dndbool
afkbool
rafLinkTypeRafLinkType

SendWhoFilters structure

classIDsnumber[]
raceIDsnumber[]
uiMapIDsnumber[]

WhoFilter structure

namestring
IDnumber

WhoInfo structure

fullNamestring
fullGuildNamestring
levelnumber
raceStrstring
classStrstring
areastring
filenamestring may be nil
gendernumber
timerunningSeasonIDnumber may be nil

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows