I created a work around until I get a reply. If anyone else is running into this issue then use the below code.
community.getNotifications(function(err, notifications) // Used to check if the user is logged in.
{
if(err.toString().indexOf("HTTP error 401") > -1)
{
console.log("Saved Announcement");
announcements.push({title: title, body: body});
client.webLogOn();
}
else
{
community.postGroupAnnouncement(config.steam_group_id, title, body, function(err) // Doesn't check if the user is logged in...... -.-
{
if(err != null)
{
console.log(err);
response.status(500).send("An error has occured, check your console.");
}
else
{
console.log("Posted Announcement Successfully!");
response.status(200).send("Posted Announcement Successfully!");
}
});
}
});