Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API BNGetFriendInfo
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{ood}} {{wowapi}} __NOTOC__ Returns information about the specified RealID friend presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, broadcastText, noteText, isFriend, broadcastTime = BNGetFriendInfo(friendIndex) == Arguments == ;friendIndex : number - The index on the friends list for this RealID friend == Returns == :presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, broadcastText, noteText, isFriend, broadcastTime ;presenceID : Number - a unique numeric identifier for this friend for this session ;givenName : String - a |K [[UI_escape_sequences|Escape Sequence]] representing the friend's first/given name (As of 4.0) ;surname : String - a |K [[UI_escape_sequences|Escape Sequence]] representing the friend's Surname/family name (As of 4.0) ;toonName : String - the name of the friend's currently logged in character ;toonID : Number - a unique numeric identifier for this friend's character for this session ;client : String - Either "WoW" or "S2", for World of Warcraft or Starcraft2 ;isOnline : Boolean - true if the friend is online ;lastOnline : Number - the number of seconds since this friend was last online since last Epoch, January 1, 1970, nil if currently online ;isAFK : Boolean - true if the friend is flagged as Away ;isDND : Boolean - true if the friend is flagged as Busy ;broadcastText : String - the contents of the friend's broadcast message ;noteText : String - the contents of the player's note about this friend ;isFriend : Boolean - unknown ;broadcastTime : Number - the number of seconds since the friend send the current broadcast == Details == The client names can be accessed via the globals BNET_CLIENT_WOW, BNET_CLIENT_D3, BNET_CLIENT_SC2 and BNET_CLIENT_WTCG. ==Useful Events== *BN_CONNECTED *BN_DISCONNECTED *BN_FRIEND_ACCOUNT_ONLINE *BN_FRIEND_ACCOUNT_OFFLINE *BN_CUSTOM_MESSAGE_CHANGED *BN_FRIEND_INVITE_ADDED *BN_FRIEND_INVITE_LIST_INITIALIZED *BN_CHAT_CHANNEL_JOINED <span style="line-height:21px;"></span>
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Ambox
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Ood
(
edit
)
Template:Outdated
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)
Close
Loading editor…