v0.13.8

C_FriendList

namespaceavailable in: camelot

Status in wowlua

32 functions: 12 implemented, 1 recorded, 19 guessed. 27 events, 2 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AddFriendAdds a friend to your friend list.
(name: string, notes: string?)
guessed
AddIgnoreAdds a player to your ignore list.
(name: string): boolean
implemented
AddOrDelIgnoreAdds or removes a player to/from the ignore list.
(name: string)
implemented
AddOrRemoveFriendAdds or removes a player to or from the friends list.
(name: string, notes: string)
guessed
DelIgnoreRemoves a player from your ignore list.
(name: string): boolean
implemented
DelIgnoreByIndexRemoves a player from your ignore list.
(index: number)
implemented
GetFriendInfoRetrieves information about a person on your friends list.
(name: string): FriendInfo?
guessed
GetFriendInfoByIndexRetrieves information about a person on your friends list.
(index: number): FriendInfo?
guessed
GetIgnoreNameReturns the name of a currently ignored player.
(index: number): string?
implemented
GetNumFriendsReturns how many friends you have.
(): number
guessed
GetNumIgnoresReturns the number of entries on your ignore list.
(): number
implemented
GetNumOnlineFriendsReturns the number of online friends.
(): number
implemented
GetNumWhoResultsGet the number of entries resulting from your most recent /who query.
(): (number, number)
implemented
GetSelectedFriendReturns the index of the currently selected friend.
(): number?
guessed
GetSelectedIgnoreReturns the currently selected index in the ignore listing.
(): number?
guessed
GetWhoInfoRetrieves info about a character on your current /who list.
(index: number): WhoInfo?
implemented
GetWhoRaceFiltersReturns the races the Who list can be filtered by: the races of the player's faction. · by wowlua
(): WhoFilter[]
guessed
IsFriendReturns whether a character is your friend.
(guid: string): boolean
guessed
IsIgnoredReturns whether a character is being ignored by you.
(token: string): boolean
implemented
IsIgnoredByGuidReturns whether a character is being ignored by you.
(guid: string): boolean
guessed
IsLegacyFriendSystemEnabledWhether the legacy friend system is in use. · by wowlua
(): boolean
recorded
IsOnIgnoredListWhether the player is on the ignore list. · by wowlua
(token: string): boolean
implemented
RemoveFriendRemoves a friend from the friends list.
(name: string): boolean
guessed
RemoveFriendByIndexRemoves a friend from the friends list.
(index: number)
guessed
SendWhoRequests a list of other online players.
(filter: string, origin: number?, filters: SendWhoFilters?)
implemented
SetFriendNotesSets the note text for a friend.
(name: string, notes: string): boolean
guessed
SetFriendNotesByIndexSets the note text for a friend.
(index: number, notes: string)
guessed
SetSelectedFriendUpdates the current selected friend.
(index: number)
guessed
SetSelectedIgnoreSets the currently selected ignore entry.
(index: number)
guessed
SetWhoToUiSets how the result of a /who request will be delivered.
(whoToUi: boolean)
guessed
ShowFriendsRequests updated friends information from server.
()
guessed
SortWhoSorts the last /who reply received by the client.
(sorting: string, ascending: boolean?)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
BATTLE_NET_FRIEND_TAG_ENABLED_STATUS_UPDATEDno payloadnot implemented
BATTLE_NET_TITLE_FRIEND_CUSTOM_NAME_ENABLED_STATUS_UPDATEDno payloadnot implemented
BN_BLOCK_FAILED_TOO_MANYblockType: stringnot implemented
BN_BLOCK_LIST_UPDATEDno payloadnot implemented
BN_CHAT_WHISPER_UNDELIVERABLEsenderID: numbernot implemented
BN_CONNECTEDsuppressNotification: booleannot implemented
BN_CUSTOM_MESSAGE_CHANGEDid: number?not implemented
BN_CUSTOM_MESSAGE_LOADEDno payloadnot implemented
BN_DISCONNECTEDresult: boolean, suppressNotification: booleannot implemented
BN_FRIEND_ACCOUNT_OFFLINEfriendId: number, isCompanionApp: booleannot implemented
BN_FRIEND_ACCOUNT_ONLINEfriendId: number, isCompanionApp: booleannot implemented
BN_FRIEND_INFO_CHANGEDfriendIndex: number?not implemented
BN_FRIEND_INVITE_ADDEDaccountID: numbernot implemented
BN_FRIEND_INVITE_LIST_INITIALIZEDlistSize: numbernot implemented
BN_FRIEND_INVITE_REMOVEDno payloadnot implemented
BN_FRIEND_LIST_SIZE_CHANGEDaccountID: number?not implemented
BN_INFO_CHANGEDno payloadnot implemented
BN_REQUEST_FOF_SUCCEEDEDno payloadnot implemented
CONFIRM_BATTLE_NET_FRIEND_INVITE_SHOWname: string, friendLevel: BattleNetFriendLevelnot implemented
FRIENDLIST_UPDATEno payloadnot implemented
IGNORELIST_UPDATEno payloadimplemented
LEGACY_FRIEND_SYSTEM_STATUS_UPDATEDno payloadnot implemented
MUTELIST_UPDATEno payloadnot implemented
NEW_MATCHMAKING_PARTY_INVITEno payloadnot implemented
REJECTED_MATCHMAKING_PARTY_INVITEname: stringnot implemented
SOCIAL_UI_FRIENDS_LIST_SYSTEM_STATUS_UPDATEDno payloadnot implemented
WHO_LIST_UPDATEno payloadimplemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("BATTLE_NET_FRIEND_TAG_ENABLED_STATUS_UPDATED").

Structures

  • FriendInfo · connected, name, className?, area?, notes?, guid, level, dnd, afk, rafLinkType
  • SendWhoFilters · classIDs, raceIDs, uiMapIDs
  • WhoFilter · name, ID
  • WhoInfo · fullName, fullGuildName, level, raceStr, classStr, area, filename?, gender, timerunningSeasonID?

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (FriendList system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.