resetVersion: v1.4
Sur cette page
reset()
Ce contenu n’est pas encore disponible dans votre langue.
This function is used to reset a user in the database.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| userId | string | ✅ | The User ID |
| guildId | string | ✅ | The Guild ID |
Returns
Section titled “Returns”- Promise<
object>
Example:
{ user: "326815959358898189", guild: "867999056172052551", level: 0, xp: 0}Throws
Section titled “Throws”new Error()- if the user ID or guild ID is missing.
[JS] Example
Section titled “[JS] Example”const { reset } = require("simply-xp");
const userId = "326815959358898189";const guildId = "867999056172052551";
reset(userId, guildId) .then(console.log) // Returns the reset user .catch((err) => console.log(err)); // Returns the error