social / pragma.friend / FriendService / setAcceptIncomingFriendInvitesV1 /
setAcceptIncomingFriendInvitesV1 #
suspend fun setAcceptIncomingFriendInvitesV1(session: PlayerSession, request: FriendRpc.SetAcceptIncomingFriendInvitesV1Request): FriendRpc.SetAcceptIncomingFriendInvitesV1Response
Lets a player change whether they can accept incoming friend invites anymore. If the setting is false, when other players attempt to send a friend request, they will receive a FriendResponse.BlockedByInvitee.
Invites sent to a player prior to disabling incoming friend invites will remain actionable.
Returns a result string in the response message. See FriendResponse for all values.
- FriendResponse.Ok - Success.