> For the complete documentation index, see [llms.txt](https://xeinmod.gitbook.io/xeinmod-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeinmod.gitbook.io/xeinmod-wiki/commands-help/sanction-commands.md).

# Sanction commands

{% hint style="info" %}
You can see all the commands related to infractions on this [page](/xeinmod-wiki/commands-help/infractions-command.md#infraction-command).
{% endhint %}

## Ban command

You can permanently ban a user using the following command:\
`!ban [userID] [reason]`

| Arguments | Explanation                         | Required |
| --------- | ----------------------------------- | -------- |
| userID    | The ID of the user you want to ban. | Required |
| reason    | The reason of the ban.              | Required |

## Tempban command

You can ban temporarily a user using the following command :&#x20;

`!tempban [userID] [duration] [reason]`

| Arguments | Explanation                                                                                  | Required |
| --------- | -------------------------------------------------------------------------------------------- | -------- |
| userID    | The ID of the user you want to tempban.                                                      | Required |
| duration  | The duration of the sanction ("s" for seconds, "m" for minuts, "h" for hours, "d" for days). | Required |
| reason    | The reason of the tempban.                                                                   | Required |

<mark style="color:green;">Example of use</mark> : `!tempban 343787767169417238 5h Troll` will ban the user for 5 hours with the reason "Troll".

## Unban command

You can unban a user from your server using the following command :&#x20;

`!unban [userID]`

| Argument | Explanation                           | Required |
| -------- | ------------------------------------- | -------- |
| userID   | The ID of the user you want to unban. | Required |

{% hint style="danger" %}
A role "XMuted" will be created with custom permissions. Depending on how you have made your permissions, it is possible that those of the created role do not have priority and that the user can continue to speak. It is therefore important to check your permissions beforehand.
{% endhint %}

## Mute command

You can permanently mute a user using the following command :&#x20;

`!mute [userID] [reason]`

| Arguments | userID                               | Required |
| --------- | ------------------------------------ | -------- |
| userID    | The ID of the user you want to mute. | Required |
| reason    | The reason of the mute.              | Required |

## Tempmute command

You can temporarily mute a user using the following command :&#x20;

`!tempmute [userID] [duration] [reason]`

| Arguments | Explanation                                                                                  | Required |
| --------- | -------------------------------------------------------------------------------------------- | -------- |
| userID    | The ID of the user you want to tempmute.                                                     | Required |
| duration  | The duration of the sanction ("s" for seconds, "m" for minuts, "h" for hours, "d" for days). | Required |
| reason    | The reason of the tempmute.                                                                  | Required |

## Unmute command&#x20;

You can unban a user using the following command :&#x20;

`!unmute [userID]`

| Argument | Explanation                          | Required |
| -------- | ------------------------------------ | -------- |
| userID   | The ID of the user you want to unban | Required |

## Warn command

You can warn a user using the following command :&#x20;

`!warn [userID] [reason]`

| Arguments | Explanation                          | Required |
| --------- | ------------------------------------ | -------- |
| userID    | The ID of the user you want to warn. | Required |
| reason    | The reason of the warn.              | Required |

## Kick command

You can kick a user from your server using the following command :&#x20;

`!kick [userID] [reason]`

| Arguments | Explanation                          | Required |
| --------- | ------------------------------------ | -------- |
| userID    | The ID of the user you want to kick. | Required |
| reason    | The reason of the kick.              | Required |
