C_BattleNet.GetFriendAccountInfo

From Wowpedia
Jump to: navigation, search

Returns information about the Battle.net friend.

accountInfo = C_BattleNet.GetFriendAccountInfo(friendIndex [, wowAccountGUID])

Arguments

friendIndex 
number - The index on the friends list for this Battle.net friend.
wowAccountGUID 
string?

Returns

accountInfo 
BNetAccountInfo?
Key Type Description
bnetAccountID number A unique numeric identifier for the friend's battle.net account during this session
accountName string A protected string representing the friend's full name or BattleTag name
battleTag string A nickname and number that when combined, form a unique string that identifies the friend (e.g., "Nickname#0001")
isFriend boolean
isBattleTagFriend boolean Whether or not the friend is known by their BattleTag
lastOnlineTime number The number of seconds elapsed since this friend was last online (from the epoch date of January 1, 1970). Returns nil if currently online.
isAFK boolean Whether or not the friend is flagged as Away
isDND boolean Whether or not the friend is flagged as Busy
isFavorite boolean Whether or not the friend is marked as a favorite by you
appearOffline boolean
customMessage string The Battle.Net broadcast message
customMessageTime number The number of seconds elapsed since the current broadcast message was sent
note string The contents of the player's note about this friend
rafLinkType Enum.RafLinkType
gameAccountInfo BNetGameAccountInfo
Enum.RafLinkType
Value Key Description
0 None
1 Recruit
2 Friend
3 Both
BNetGameAccountInfo
Key Type Description
gameAccountID number?
clientProgram string globalstring BNET_CLIENT
isOnline boolean
isGameBusy boolean
isGameAFK boolean
wowProjectID number?
characterName string? The name of the logged in toon/character
realmName string? The name of the logged in realm
realmDisplayName string?
realmID number? The ID for the logged in realm
factionName string? The englishFaction name (i.e., "Alliance" or "Horde")
raceName string? The localized race name (e.g., "Blood Elf")
className string? The localized class name (e.g., "Death Knight")
areaName string? The localized zone name (e.g., "The Undercity")
characterLevel number? The current level (e.g., "90")
richPresence string? For WoW, returns "zoneName - realmName". For StarCraft 2 and Diablo 3, returns the location or activity the player is currently engaged in.
playerGuid string? A unique numeric identifier for the friend's character during this session.
isWowMobile boolean
canSummon boolean
hasFocus boolean Whether or not this toon is the one currently being displayed in Blizzard's FriendFrame
BNET_CLIENT
GlobalString Value Description
BNET_CLIENT_WOW WoW World of Warcraft
BNET_CLIENT_SC2 S2 StarCraft 2
BNET_CLIENT_D3 D3 Diablo 3
BNET_CLIENT_WTCG WTCG Hearthstone
BNET_CLIENT_APP App Battle.net Desktop App
BSAp Battle.net Mobile App
BNET_CLIENT_HEROES Hero Heroes of the Storm
BNET_CLIENT_OVERWATCH Pro Overwatch
BNET_CLIENT_CLNT CLNT
BNET_CLIENT_SC S1 StarCraft: Remastered
BNET_CLIENT_DESTINY2 DST2 Destiny 2
BNET_CLIENT_COD VIPR Call of Duty: Black Ops 4
BNET_CLIENT_COD_MW ODIN Call of Duty: Modern Warfare
BNET_CLIENT_COD_MW2 LAZR Call of Duty: Modern Warfare 2
BNET_CLIENT_COD_BOCW ZEUS Call of Duty: Black Ops Cold War
BNET_CLIENT_WC3 W3 Warcraft III: Reforged

Patch changes

External links