What is 'client' and I assume this is only triggered when the account recieves an invite and doesn't trigger for the invites it currently has. If there isn't a way, can I load the friend invites page and get all friend invites from there? Update: Okay, so I ended up with this to check current invites:
community.httpRequest("http://steamcommunity.com/my/home/invites/", (err, response, body) => {
if (err) {
console.log("Error: %s", err.message)
} else {
// Sort them here
}
})