JoinLog

API reference for JoinLog in @erlcjs/core.

Represents a server join or leave log entry.

Signature:

declare class JoinLog extends Base

Extends: Base

#Constructors

Constructor

Modifiers

Description

(constructor)(server, data)

Creates an instance of JoinLog.

#Properties

Property

Modifiers

Type

Description

joined

boolean

Whether the player joined (true) or left (false).

player?

Player

(Optional) The Player instance representing the player, if they are still cached.

playerId

number

The UserId of the player.

playerUsername

string

The Roblox username of the player.

timestamp

number

Unix timestamp of when the event occurred.

#Methods

Method

Modifiers

Description

_patch(data)

Patches the JoinLog structure with new raw data.

toJSON()

Converts this JoinLog instance to raw JSON representation.