Implements

  • UserAttributes

Constructors

Properties

2fa: boolean
created_at: Date
email: string
external_id?: null | string
first_name: string
id: number
language: string
last_name: string
root_admin: boolean
servers?: PanelServer[]
updated_at: Date
username: string
uuid: string

Methods

  • Update this user's email address on the panel

    Parameters

    • email: string

      The new email address

    Returns Promise<void>

  • Update this user's first name on the panel

    Parameters

    • firstName: string

      The new first name

    Returns Promise<void>

  • Update this user's language on the panel

    Parameters

    • language: string

      The new language

    Returns Promise<void>

    language en
    
  • Update this user's last name on the panel

    Parameters

    • lastName: string

      The new last name

    Returns Promise<void>

  • Update this user's admin status on the panel

    Parameters

    • panelAdmin: boolean

      Should the user be an admin

    Returns Promise<void>

    panelAdmin false
    
  • Update this user's password on the panel

    Parameters

    • password: string

      The new password

    Returns Promise<void>

  • Update this user's username on the panel

    Parameters

    • username: string

      The new username

    Returns Promise<void>