Skip to content
Version: v2.0
On this page

`XpResult` extends [`UserResult`](/docs/Types/UserResult)

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

Property Type Optional Description
_id string ✅ MongoDB document ID.
flags Array ✅ Stored user flags.
guild string ❌ The guild ID.
user string ❌ The user ID.
name string ✅ Username stored for the user.
createdAt string ✅ ISO timestamp of creation.
lastUpdated string ❌ ISO timestamp of the last update.
level number ❌ The user’s level after the mutation.
xp number ❌ The user’s XP after the mutation.
xp_rate number ✅ Stored XP rate for the user record.
levelDifference number ❌ Difference between the previous and new level.