Leveling & XP

Award XP for messages and announce level-ups.

Starter

Award XP for messages and announce level-ups.

Install Leveling & XP from your bot’s Modules tab. Configure the settings below, save, and deploy the bot to apply changes. See module setup for shared setup steps.

Set up and use

Choose XP per message and an optional Announcement channel. Without a destination, the level-up message goes to the conversation channel. A member can earn XP at most once per minute.

Run /rank to view your own level and progress, or /rank user:@member to view another member. XP, levels, and the XP cooldown are saved in your bot's key-value storage and survive restarts and redeploys. Leaderboards and level-reward roles are not currently included.

Each member who earns XP uses one key per server, under that server's scope: module:leveling:member:<userId>. The JSON value contains xp (progress toward the next level), level, and lastMsg (the timestamp of the last XP award). These records count toward your account's normal key and storage limits. Viewing a rank does not create a key. Deleting a member's key resets their progress.

If storage is full or unavailable, the bot skips XP awards and logs the storage problem instead of announcing unsaved progress. It retries on a later message after a short backoff. Progress from older versions that only held XP in memory cannot be recovered after a restart.

For image displays, install and enable the Pro Image Cards module and customize its Rank and Level Up designs independently. Enable Use an image for /rank and/or Include a level-up image, then save and redeploy. Images are attached directly alongside the rank or announcement text. Cards receive {level}, {xp}, {xpNeeded}, and {nextLevel}, and can show an XP progress bar. The bot needs Attach Files permission.

Rendering happens after XP has been saved. If rendering is unavailable, the bot sends the usual text instead; saved progress is unaffected. Image requests share the Image Cards module's normal limits.

Settings reference

SettingDefaultDetails
XP per message5Enter a number.
Announcement channel—Choose a Discord channel.
Use an image for /rankfalseAttach the Rank design from Pro Image Cards.
Include a level-up imagefalseAttach the Level Up design from Pro Image Cards to announcements.

Discord setup and troubleshooting

BotDen prepares the invite permission request automatically from your enabled modules and saved commands/events. Use the invite generated by BotDen.

Enable Message Content Intent in the Discord Developer Portal for this module. See privileged intents.

If the feature does not work after saving and deploying, see troubleshooting for intents, existing-server permissions, channel access, and role order.