social / pragma.friend / FriendService / blockV1 /
blockV1 #
suspend fun blockV1(session: PlayerSession, request: FriendRpc.BlockV1Request): FriendRpc.BlockV1Response
Prevents a player from receiving invites from the blocked player. Friendship status and pending friend invites between the two players will be removed.
Notifies both players if friendship was removed.
Returns a result string in the response message. See FriendResponse for all values.
- FriendResponse.Ok - Success.
- FriendResponse.SocialIdentityNotFound - The player being blocked could not be retrieved.
- FriendResponse.FriendNotFound - The players were friends and the friend entry cannot be found.
- FriendResponse.SelfOperationNotAllowed - The player tried to block themselves