Discord Level Bot and Leaderboard Guide: XP, Ranks and Reward Roles
How is XP earned?
Time spent in voice channels and the number of messages you send are turned into XP. By default you earn 10 XP per minute of voice and 5 XP per message; level 1 needs 100 XP and level 10 needs 2,470 XP in total. The XP values and daily limits can be changed in the server settings.
XP is earned from the moment Onyu starts recording activity, and past activity is not recalculated retroactively. Messages are only counted — their content is never read — and voice conversations are never recorded.
- By default, up to 100 messages and 720 minutes (12 hours) of voice count toward XP each day.
- By default, time spent alone in a channel, time with your headset sound turned off, and time in the AFK channel are excluded from voice XP. Time with your microphone off is included by default.
- You can also exclude specific channels or roles from earning XP, or give channels and roles an XP multiplier.
Where can I see the leaderboard?
In Discord, the /leaderboard command shows the server top ranking card and the /rank command shows your own level and rank card. The leaderboard screen on the web dashboard can be opened by users with server management permissions, and it can sort the ranking by total XP, voice time, or message count.
Server admins can make the leaderboard visible to admins only in the level settings. Members who do not want their nickname shown in rankings can turn on anonymous display on their My Page.
How do I set up level reward roles?
In the level system settings, register rewards such as "give this role at this level". When a member levels up, the role is assigned automatically, and if several levels are gained at once, the reward roles for the skipped levels are assigned too.
For safety, roles with administrator or other dangerous permissions, roles equal to or higher than the Onyu role, and bot or integration roles cannot be used as rewards. Roles are only ever assigned, never taken back automatically, and changing the reward settings later does not apply to level-ups that already happened.
- If you choose an announcement channel for level-ups, members who leveled up are announced together in a single message. The announcement text can be changed with a one-line template.
When are XP and levels updated?
XP and levels are updated once every five minutes. Right after activity there can be a delay of up to five minutes, and the reward roles you receive for leveling up are assigned on the same cycle.
In case a role assignment fails temporarily, the reward roles of the whole server are checked again at 15 minutes past every hour and any missing roles are filled in. The leaderboard and the /rank card use the same data, so they update at the same time.
FAQ
How long does it take for XP to update in a Discord level bot?
XP is updated once every five minutes, so it takes up to about five minutes after activity.
I am in a voice channel but my XP is not going up.
By default, time spent alone in a channel, time with your headset sound turned off, time in the AFK channel, and time in channels or with roles set as no-XP do not earn XP. Time beyond the daily limit (720 minutes by default) does not earn more either.
Can regular members see the leaderboard?
Yes, members can use the /leaderboard and /rank commands in Discord, unless an admin has made the leaderboard admin-only. The web leaderboard can only be opened by users with server management permissions.
Are level reward roles taken away if the level drops?
No. Reward roles are only assigned and are never taken away automatically.