> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bleed.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Level Rewards

> Reward your members for being active in your server.

## Getting started

Before you run any commands, it's important to use the `/levels unlock` command. Otherwise,
XP will not be tracked for users. You can also use the `/levels lock` command to temporarily stop tracking XP.

## Ignoring channels and roles

You should immediately ignore channels and roles that you don't want gaining XP. You can do this by using the `/levels ignore` command.

> [!NOTE]
>
> If you no longer want to ignore a channel or role, you can re-run the command.
> You can also use `/levels list` to view all ignored channels and roles.

```javascript Syntax theme={null}
/levels ignore role:<role>|channel:<channel>
```

```javascript Example theme={null}
/levels ignore channel:#spam
/levels ignore role:@jailed
```

![](https://mintcdn.com/bleed/Iol3HRFyWVexDzQ4/images/configuration/level-rewards/ignore-channel.png?fit=max\&auto=format\&n=Iol3HRFyWVexDzQ4\&q=85\&s=c1562d6673585f80502be739d1d0f9dd)

## Setting up roles to reward

You can reward your members with roles when they reach a certain level. You can use the `/levels add` command to add a level reward.

> [!NOTE]
>
> If you no longer want to reward a role for a level, you can use the `/levels remove` command.

> [!TIP]
>
> If your server already has XP, you can use the `/levels sync` command to ensure that all users have the correct roles based on their XP.

```javascript Syntax theme={null}
/levels add role:<role> rank:<level>
/levels remove rank:<level>
```

```javascript Example theme={null}
/levels add role:@Lvl 5 rank:5
/levels remove rank:5
```

![](https://mintcdn.com/bleed/Iol3HRFyWVexDzQ4/images/configuration/level-rewards/setting-roles.png?fit=max\&auto=format\&n=Iol3HRFyWVexDzQ4\&q=85\&s=ade3a119d5582d301d21825ee892f0a6)

### Stacking reward roles

Stacking roles means that users will keep all the roles they've earned when they reach a new level, instead of only having the role for their current level. By default, this feature is enabled.

```javascript Syntax theme={null}
/levels stackroles setting:<On|Off>
```

```javascript Example theme={null}
/levels stackroles setting:On
```

## Customizing level-up messages

You can customize the level-up message that will be sent when a user achieves a new level.

> [!CAUTION]
>
> Level-up messages start sending at level four. This is intended behavior.

> [!NOTE]
>
> The `message` parameter can be raw text or an [embed](https://docs.bleed.bot/resources/scripting)
> with dynamic [variables](https://docs.bleed.bot/resources/scripting/variables.md).

> [!WARNING]
>
> You must include the `{guild.name}` variable in your message if `messagemode` is set to `pm`.

```javascript Syntax theme={null}
/levels message set text:<text|embed code>
```

```javascript Example theme={null}
/levels message Congrats {user} on reaching level {level.new_rank} in {guild.name}!
/levels message {embed}$v{message: {user.mention}}$v{description: you have reached level {level.new_rank} in {guild.name}}
```

### Setting where the message is sent

You can set the channel where the level-up message will be sent. By default, the message is sent in the same channel where the user achieved the level.

There are four options for where the message can be sent:

* `/levels messagemode dm` - Sends the message in the user's direct messages.
* `/levels messagemode here` - Sends the message in the same channel where the user gained XP.
* `/levels messagemode channel` - Sends the message in the specified channel.
* `/levels messagemode off` - Entirely disables the level-up message.

```javascript Syntax theme={null}
/levels messagemode channel|dm|here|off channel:<channel> 
```

```javascript Example theme={null}
/levels messagemode channel channel:#level-up
/levels messagemode dm
```

![](https://mintcdn.com/bleed/Iol3HRFyWVexDzQ4/images/configuration/level-rewards/message-mode.png?fit=max\&auto=format\&n=Iol3HRFyWVexDzQ4\&q=85\&s=fbade8db89fb13b170677c52fe38863a)

## Changing a member's level

You can change a member's level to a specific level or set their XP to a specific amount.

```javascript Syntax theme={null}
/levels setlevel member:<member> level:<level>
/levels setxp member:<member> amount:<amount>
```

```javascript Example theme={null}
/levels setlevel member:@J21234 level:5
/levels setxp member:@Keesh amount:10000
```

## Changing the XP multiplier

You can change the XP multiplier to increase or decrease the amount of XP members receive.

```javascript Syntax theme={null}
/levels setrate multiplier:<multiplier>
```

```javascript Example theme={null}
/levels setrate multiplier:2.4
```

## Related commands

> [accordion] Viewing a user's level and XP
>
> Use the `/levels rank` command to view a user's level and XP.

> [accordion] Viewing the XP leaderboard
>
> Use the `/levels leaderboard view` subcommand to view the highest XP earners in the server.

> [accordion] Viewing the level rewards
>
> Use the `/levels roles` subcommand to view all level rewards and the
> remaining XP needed to receive them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.