The Friends Object

OBJECTFriends

Members#

NameTypeDescription
usernameStringThe username of the user
statusStringThe friend status of the user
onlineStateObject? | BoolThe online state of the player
onlineState.applicationStringThe application name that the user is currently logged into
onlineState.applicationDisplayNameStringThe application name displayed in the Friends and Relations dialog

Remarks#

  • The status field can be one of three values:
    • friend: This user is currently a confirmed friend of the authenticated user
    • request-outgoing: This user has yet to respond to an outgoing friend request from the authenticated user
    • request-incoming: This user has sent a friend request to the authenticated user, which has yet to be responded to.
  • The onlineState field can be one of two values:
    • false: the user is not currently online
    • [Object]: the user is currently online

Examples#

{
"username": "vicr123",
"status": "friend",
"onlineState": false
}
{
"username": "vicr123",
"status": "request-incoming"
}
{
"username": "Akribes",
"status": "friend",
"onlineState": {
"application": "EntertainingChess",
"applicationDisplayName": "Entertaining Chess"
}
}