v0.13.7

C_FriendList.GetSelectedFriend

functionguessedavailable in: camelot

Returns the index of the currently selected friend.

signaturewowlua
function C_FriendList.GetSelectedFriend(): number?

Returns

index · number? · The index of the friend which is currently selected on the friend list. Returns nil if you have no friends.

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

  • Requires friend list.

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (FriendList system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.