social / pragma.friend / FriendService / respondToFriendInviteV1 /

respondToFriendInviteV1 #

suspend fun respondToFriendInviteV1(session: PlayerSession, request: FriendRpc.RespondToFriendInviteV1Request): FriendRpc.RespondToFriendInviteV1Response

Responds to a friend invite from the specified player.

Accepting will establish friendship, adding each player to the other’s friend list, and notifying them. Rejecting will notify both players.

Returns a result string in the response message. See FriendResponse for values.

PragmaResultErrors

  • PragmaError.FriendService_InternalError - If unable to retrieve the account information of the inviter.