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 FriendResultStatus for all values.
- FriendResultStatus.Ok - Success.
- FriendResultStatus.SocialIdentityNotFound - The player being blocked could not be retrieved.
- FriendResultStatus.FriendNotFound - The players were friends and the friend entry cannot be found.
- FriendResultStatus.SelfOperationNotAllowed - The player tried to block themselves