C_FriendList.GetWhoInfo
Retrieves info about a character on your current /who list.
info = C_FriendList.GetWhoInfo(index)
Arguments
- index
- number - Index 1 up to GetNumWhoResults()
Returns
- info
- WhoInfo
Key | Type | Description |
---|---|---|
fullName | string | Character-Realm name |
fullGuildName | string | Guild name |
level | number | |
raceStr | string | |
classStr | string | Localized class name |
area | string | The character's current zone |
filename | string? | Localization-independent classFilename |
gender | number | Sex of the character. 2 for male, 3 for female |
Example
local p = C_FriendList.GetWhoInfo(1) print(format("%s (level %d %s %s) is in %s", p.fullName, p.level, p.raceStr, p.classStr, p.area))
> Nartan-Ravenholdt (level 43 Kul Tiran Druid) is in Eastern Plaguelands
Patch changes
Patch 8.1.0 (2018-12-11): Moved to
C_FriendList.GetWhoInfo()
. The previous alias is deprecated. [1]Patch 1.1.0 (2004-11-07): Added as GetWhoInfo()
See also
External links
GitHub FrameXML, Gethe
Globe "wut?" Tool, Townlong-Yak
Blizzard API Docs, Townlong-Yak
Offline /api addon, MrBuds