Constructors

  • Parameters

    • username: string
    • password: string
    • enabled: boolean
    • isAdmin: boolean
    • hasAccessToAllServers: boolean
    • OptionalcustomServerPermissions: object[]

    Returns User

Properties

customServerPermissions: null | object[]
enabled: boolean
hasAccessToAllServers: boolean
isAdmin: boolean
password: string
username: string

Methods

  • Add a custom server permission

    Parameters

    • serverId: any

      The server ID

    • permissions: string

      The permissions

    • value: boolean

      The value

    Returns User

  • Get the customServerPermissions

    Returns null | object[]

  • Get the hasAccessToAllServers status

    Returns boolean

  • Remove a custom server permission

    Parameters

    • serverId: string

      The server ID

    Returns User

  • Set the customServerPermissions

    Parameters

    • customServerPermissions: object[]

      The customServerPermissions

    Returns User

  • Set the hasAccessToAllServers status

    Parameters

    • hasAccessToAllServers: boolean

      The hasAccessToAllServers status

    Returns User