Staff

API reference for Staff in @erlcjs/core.

Represents a staff member.

Signature:

declare class Staff extends Base

Extends: Base

#Constructors

Constructor

Modifiers

Description

(constructor)(server, userId, username)

Creates an instance of Staff.

#Properties

Property

Modifiers

Type

Description

id

number

The staff members user id.

online

boolean

Whether or not the staff member is online.

player?

Player

(Optional) The player instance of the staff member if they are online.

username

string

The staff members username.

#Methods

Method

Modifiers

Description

_patch(userId, username)

Patches the Staff structure with new raw data.