Options
All
  • Public
  • Public/Protected
  • All
Menu

User blocking controller.

Hierarchy

  • BlockController

Index

Constructors

constructor

Methods

blockUser

  • blockUser(blockedUserID: string, user: NBUser): Promise<void>

getBlockedUsers

hasBlocked

  • hasBlocked(otherUserID: string, user: NBUser): Promise<boolean>
  • Get whether or not the other user has the user blocked.

    Parameters

    • otherUserID: string

      The ID of the other user.

    • user: NBUser

      The user.

    Returns Promise<boolean>

    Whether or not the other user has the user blocked.

isBlocked

  • isBlocked(otherUserID: string, user: NBUser): Promise<boolean>

unblockUser

  • unblockUser(blockedUserID: string, user: NBUser): Promise<void>

Generated using TypeDoc