Friends

Send Request

Send a friend request to another user.

Request

  • userToken
    string
  • targetUserId
    string

Response

  • friendRequest
    object
    • friendRequest.id
      string
    • friendRequest.senderUserId
      string
    • friendRequest.targetUserId
      string
    • friendRequest.createdAt
      string
    • friendRequest.declinedAt
      nullable string
    • friendRequest.acceptedAt
      nullable string

Usage

1. Install the module

2. Use this script

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