internal bool TryRemoveRelationship(Snowflake id, out CachedRelationship relationship) { var result = _relationships.TryRemove(id, out relationship); if (result) { relationship.User.SharedUser.References--; } return(result); }
internal bool TryAddRelationship(CachedRelationship relationship) { var result = _relationships.TryAdd(relationship.Id, relationship); if (result) { relationship.User.SharedUser.References++; } return(result); }