v0.13.8

C_BattleNet.GetFriendGameAccountInfo

functionguessedavailable in: camelot

Returns information on the game the Battle.net friend is playing.

signaturewowlua
function C_BattleNet.GetFriendGameAccountInfo(    friendIndex: number,    accountIndex: number): BNetGameAccountInfo?

Parameters

nametypedescription
friendIndexnumberIndex ranging from 1 to BNGetNumFriends()
accountIndexnumberIndex ranging from 1 to C_BattleNet.GetFriendNumGameAccounts()

Returns

gameAccountInfo · BNetGameAccountInfo?

BNetGameAccountInfo
fieldtype
gameAccountIDnumber
clientProgramstring
isOnlineboolean
isGameBusyboolean
isGameAFKboolean
isAppearOfflineboolean
wowProjectIDnumber?
characterNamestring?
realmNamestring?
realmDisplayNamestring?
realmIDnumber?
factionNamestring?
raceNamestring?
classIDnumber?
classNamestring?
classFilenamestring?
areaNamestring?
characterLevelnumber?
richPresencestring?
playerGuidstring?
canSummonboolean
hasFocusboolean
regionIDnumber
isInCurrentRegionboolean
timerunningSeasonIDnumber?

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (BattleNet system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.