Skip to content
Discord-Rankup
Search
Cancel
GitHub
Discord
Select theme
Dark
Light
Auto
Guides
Introduction
Examples
Basic Bot
Classes
DiscordRankup
Randomizer
Events
levelDown
levelUp
Functions
addXp
createMember
deleteMember
disconnect
fetch
fetchLeaderboard
getCardData
getLevelFromXP
getRank
init
removeXP
requiredXP
resetXP
setXP
Typedefs
LeaderboardQuery
LevelChangeEvent
XPCardData
XPMember
Select theme
Dark
Light
Auto
resetXP
Reset the XP amount of a user to 0
Parameters
Parameter
Type
Description
Required
Default
userID
String
|
Snowflake
The ID of the user
✅
None
guildID
String
|
Snowflake
The ID of the guild
✅
None
Returns
Promise
<
Number
> - The new XP amount of the user