InterfaceSnapchatFriendUserInfo

Details about friendship between the active user and another user.

async function getFriends() {
return new Promise(function (resolve, reject) {
global.userContextSystem.getAllFriends(function (friends) {
resolve(friends);
});
});
}

async function init(){
let friends = await getFriends();
friends.forEach(f => {
let friendshipStartDate = f.friendInfo.friendshipStart;
let lastInteractionTime = f.friendInfo.lastInteractionTime;
print(`Friendship with ${f.displayName} started on ${friendshipStartDate}, last interacted on ${lastInteractionTime}`)
});
}

init();
interface SnapchatFriendUserInfo {
    friendshipStart?: Date;
    lastInteractionTime?: Date;
}

Properties

friendshipStart?: Date

When this friendship started.

lastInteractionTime?: Date

Last interaction between this user and the active one.