WoW API: GetNumFriends
Jump to navigation
Jump to search
← WoW API < GetNumFriends
Returns how many friends you have.
numberOfFriends, onlineFriends = GetNumFriends()
Parameters[edit]
Returns[edit]
- numberOfFriends
- Integer - The number of friends you have (i.e. the highest valid friend index you can use to get friend information).
- onlineFriends
- Integer - The number of online friends.
Example[edit]
DEFAULT_CHAT_FRAME:AddMessage("I've got " .. (GetNumFriends()) .. " friend(s)");
Result[edit]
Displays the number of friends you currently have in the default chat frame.