ModCall

API reference for ModCall in @erlcjs/core.

Represents a request for moderation help (moderator call) in the ER:LC server.

Signature:

declare class ModCall extends Base

Extends: Base

#Constructors

Constructor

Modifiers

Description

(constructor)(server, data)

Creates an instance of ModCall.

#Properties

Property

Modifiers

Type

Description

caller?

Player

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

callerId

number

The UserId of the player who made the moderator call.

callerUsername

string

The Roblox username of the caller.

moderator?

Player

(Optional) The Player instance representing the moderator who responded, if any.

moderatorId?

number

(Optional) The UserId of the moderator who responded, if any.

moderatorUsername?

string

(Optional) The Roblox username of the moderator who responded, if any.

timestamp

number

Unix timestamp of the moderator call.

#Methods

Method

Modifiers

Description

_patch(data)

Patches the ModCall structure with new raw data.

toJSON()

Converts this ModCall instance to raw JSON representation.