ModCallManager

API reference for ModCallManager in @erlcjs/core.

Manager responsible for fetching, caching, and updating ModCall structures.

Signature:

declare class ModCallManager

#Constructors

Constructor

Modifiers

Description

(constructor)(server, maxCacheSize)

Creates an instance of ModCallManager.

#Properties

Property

Modifiers

Type

Description

cache

Collection<string, ModCall>

Collection cache of logged moderator calls, keyed by a composite Caller:Timestamp key.

#Methods

Method

Modifiers

Description

fetchAll()

Fetches all moderator calls from the game server. Updates the moderator call cache.

updateCache(rawModCalls)

Re-synchronizes the cache with the raw moderator calls. Emits a modCall event for new calls.