Skip to main content

Interface

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

collection "simply-xps"​

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

data object​

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

PropertyTypeOptionalDefaultDescription
flagsArrayβœ…The flags of the user.
guildstring❌The guild ID of the user.
userstringβœ…The ID of the user.
namestringβœ…The name of the user.
levelnumberβœ…0The level of the user.
xpnumberβœ…0The XP of the user.