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
guildIdstring
A Discord snowflake identifier
Match
^[1-9]\d+$Length
17 <= length <= 19userIdstring
A Discord snowflake identifier
Match
^[1-9]\d+$Length
17 <= length <= 19triggerCooldown?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
Default
falsexp|integer
Response Body
application/json
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
}
}