API C FriendList.GetFriendInfo

Retrieves information about a person on your friends list.
 info = C_FriendList.GetFriendInfo(name)
 = C_FriendList.GetFriendInfoByIndex(index)
==Arguments==
===GetFriendInfo===
:;name: - name of friend in the friend list.
===GetFriendInfoByIndex===
:;index: - index of the friend, up to () limited to max 100.
==Returns==
:;info:
Field 	Type	Description
connected 	 	If the friend is online
name 	 	
className 	 	Friend's class, or "Unknown" (if offline)
area 	 	Current location, or "Unknown" (if offline)
notes 	 	
guid 	 	GUID, example: "Player-1096-085DE703"
level 	 	Friend's level, or 0 (if offline)
dnd 	 	If the friend's current status flag is DND
afk 	 	If the friend's current status flag is AFK
rafLinkType	 	
mobile 	 	
==Details==
* Friend information isn't necessarily automatically kept up to date. You can use () to request an update from the server.
==Example==
local f = C_FriendList.GetFriendInfoByIndex(1)
print(format("Your friend %s (level %d %s) is in %s", f.name, f.level, f.className, f.area))
-- Your friend Aërto (level 74 Warrior) is in Sholazar Basin
==Patch changes==