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
getRank
Get the user’s rank in the leaderboard
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 user’s position on the leaderboard