C_FriendList.GetWhoInfo

From Wowpedia
Jump to: navigation, search

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

See also

External links