Skip to content
On this page

Interface

This interface is used to set the options for the user in the database.

Name of collection to use, has to be simply-xps when using the properties below.

The data to set for the user, here are the properties:

Property Type Optional Default Description
flags Array ✅ The flags of the user.
guild string ❌ The guild ID of the user.
user string ✅ The ID of the user.
name string ✅ The name of the user.
level number ✅ 0 The level of the user.
xp number ✅ 0 The XP of the user.