Class MongoLevelRecord

MongoDB variant of the LevelRecord.

Hierarchy (view full)

Constructors

Properties

guildId: string

The guild this record belongs to

identifier: string

Composite key: guildId_userId

lastXpAt: number

Unix timestamp (ms) of the last XP gain — used for cooldown enforcement

level: number

Current level (derived from xp but cached for fast leaderboard queries)

mongoId?: string
totalMessages: number

Total messages sent (used for stats)

userId: string

The user this record belongs to

xp: number

Total accumulated XP