Skip to main content
Version: v2.0

XpResult extends UserResult

This interface extends UserResult with level change information returned by XP mutations.

PropertyTypeOptionalDescription
_idstringβœ…MongoDB document ID.
flagsArrayβœ…Stored user flags.
guildstring❌The guild ID.
userstring❌The user ID.
namestringβœ…Username stored for the user.
createdAtstringβœ…ISO timestamp of creation.
lastUpdatedstring❌ISO timestamp of the last update.
levelnumber❌The user's level after the mutation.
xpnumber❌The user's XP after the mutation.
xp_ratenumberβœ…Stored XP rate for the user record.
levelDifferencenumber❌Difference between the previous and new level.