Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IncomingFriendRequest

Hierarchy

Index

Properties

Methods

Properties

from

from: false extends true ? LoggedInUser : StatlessSearchedUser

Who the friend request is from

id

id: number

The friend request ID

msg

msg: string

The message with the friend request

read

read: boolean

Whether the friend request has been read yet

to

to: false extends true ? StatlessSearchedUser : LoggedInUser

Who the friend request is to

Methods

accept

  • accept(): Promise<boolean>
  • Accept a friend request

    async

    Returns Promise<boolean>

    Whether accepting the friend request was successful

markAsRead

  • markAsRead(): Promise<boolean>
  • Mark a friend request as read

    async

    Returns Promise<boolean>

    Whether marking as read was successful

reject

  • reject(): Promise<boolean>
  • Rejects a friend request, deleting it from the server

    async

    Returns Promise<boolean>

    Whether the rejection was successful

Generated using TypeDoc