WoW API < GetSelectedFriend

Returns the index of the currently selected friend.

friendIndex = GetSelectedFriend()

Parameters[edit | edit source]

Returns[edit | edit source]

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.

Details[edit | edit source]

This function is necessary because indexes can change in response to friend status updates.
Community content is available under CC-BY-SA unless otherwise noted.