WoW API: GetSelectedFriend

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetSelectedFriend to API GetSelectedFriend without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetSelectedFriend

Returns the index of the currently selected friend.

friendIndex = GetSelectedFriend()

ParametersEdit

ReturnsEdit

friendIndex
friendIndex
Integer - The index (1-based) of the friend which is currently selected (highlighted) on the friend list. Will return 0 if you have no friends.

DetailsEdit

This function is necessary because indexes can change in response to friend status updates.