Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SubUser

Index

Constructors

Properties

client: PteroClient
createdAt: Date

The date the subuser account was created.

createdTimestamp: number
email: string

The email of the subuser.

enabled: boolean

Whether the subuser has two-factor authentication enabled.

image: string

The URL of the subuser account image.

permissions: Permissions

The permissions the subuser has.

serverId: string

The identifier of the server the subuser belongs to.

username: string

The username of the subuser.

uuid: string

The UUID of the user.

Accessors

  • get panelURL(): string

Methods

  • _patch(data: any): void
  • setPermissions(...permissions: string[]): Promise<SubUser>
  • Updates the permissions of the subuser.

    Parameters

    • Rest ...permissions: string[]

      The permissions to set.

    Returns Promise<SubUser>

    The updated subuser instance.

Generated using TypeDoc