API GetSelectedFriend

104,672pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetSelectedFriend

Returns the index of the currently selected friend.

friendIndex = GetSelectedFriend()

Parameters Edit

Returns Edit

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

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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki