Manager responsible for fetching, caching, and updating Staff structures.
Signature:
declare class StaffManager#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of StaffManager. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Collection<number, Staff> |
Collection cache of admins, keyed by their userId. | ||
|
Collection<number, Staff> |
Collection cache of helpers, keyed by their userId. | ||
|
Collection<number, Staff> |
Collection cache of mods, keyed by their userId. |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Fetches all staff members. Updates the staff cache. | ||
|
Re-synchronizes the cache with the raw staff list from the API. Emits staffAdd and staffRemove events. |