LurkrLurkr Docs
Levels

Update User Level

Update the experience of a user in a guild

PATCH/levels/{guildId}/users/{userId}
X-Api-Key<token>

The user's API key to authenticate requests

In: header

Path Parameters

guildIdSnowflake

A Discord snowflake identifier

Match^[1-9]\d+$
Length17 <= length <= 19
userIdSnowflake

A Discord snowflake identifier

Match^[1-9]\d+$
Length17 <= length <= 19
triggerCooldown?boolean

Whether to trigger the leveling cooldown for this user, meaning they won't gain XP for the duration of the cooldown after this request

Defaultfalse
xpobject & integer

The amount to modify the user's XP by. We recommend using the atomic increment/decrement methods, if possible.

Response Body

curl -X PATCH "https://api.lurkr.gg/v2/levels/stringstringstrin/users/stringstringstrin" \  -H "Content-Type: application/json" \  -d '{    "xp": {      "increment": 1    }  }'
{
  "level": {
    "level": 6554,
    "messageCount": 0,
    "xp": 2147483647
  }
}