Friends

List Outgoing Friend Requests

List all friend requests sent by a user.

Request

  • userToken
    string

Response

  • friendRequests
    array of objects
    • friendRequests.id
      string
    • friendRequests.senderUserId
      string
    • friendRequests.targetUserId
      string
    • friendRequests.createdAt
      string
    • friendRequests.declinedAt
      nullable string
    • friendRequests.acceptedAt
      nullable string

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.friends.list_outgoing_friend_requests({
  // Request body
});