LogoRobo.js
Packages@robojs/xp

LevelUpEvent

Interface: LevelUpEvent

Event emitted when a user levels up

All fields are read-only event data

Remarks

The storeId field identifies which data store triggered this event. Role rewards only process events from the default store to avoid conflicts (e.g., reputation store shouldn't grant Discord roles).

Example

{
 *   guildId: '123456789012345678',
 *   userId: '234567890123456789',
 *   storeId: 'default',
 *   oldLevel: 4,
 *   newLevel: 5,
 *   totalXp: 1550
 * }

Properties

PropertyModifierTypeDescription
guildIdreadonlystringGuild where level up occurred
newLevelreadonlynumberNew level (always > oldLevel)
oldLevelreadonlynumberPrevious level
storeIdreadonlystringStore identifier that triggered this event
totalXpreadonlynumberTotal XP after level up
userIdreadonlystringUser who leveled up

On this page