Hello, I tried to use community.postUserComment but it didn't work with no errors. I'm using the script below. I'm trying to comment on user profiles.
client.on('friendRelationship', (friend, relationship) => {
if(relationship == 3) {
client.chatMessage(friend, "Hello!");
community.postUserComment(friend,"Thanks for adding!");
}});