added detection for permissionError messages
slight default type changes
changed getFriendInvites to getFriendRequests; fixed comparison of IDs