> 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/infractions-command.md).

# Infractions command

{% hint style="success" %}
You can also use `inf` aliase in spite of `infractions.`
{% endhint %}

## Infraction command :

It could be essential to see the history of sanctions of user, especially for the moderation of large communities. You can use the following command to see the history of a user :&#x20;

`!infractions [userID]`

| Argument | Explanation                                                 | Required |
| -------- | ----------------------------------------------------------- | -------- |
| userID   | The ID of the user you want to see the history of sanctions | Required |

![You will find several information such as the ID of the infraction, the type of the infraction (in this case a warn), the reason, the date and the moderator who gave the infraction](/files/vtGU16Lf8ExsZWFWwZxO)

## Remove infractions :

It could be important to remove infractions if a moderator make a mistakes. It is possible to remove only infraction by using the following command :&#x20;

`!infractions remove [infID]`

<table><thead><tr><th width="272.2197125256674">Argument</th><th>Explanation</th><th>Required</th></tr></thead><tbody><tr><td>infID</td><td>The ID of the infraction (more information <a href="#infraction-command">above</a>)</td><td>Required</td></tr></tbody></table>

## Remove all infractions :

It is possible to remove all of the infractions of a user by using the following commands :&#x20;

`!infractions remove [userID] all`

| Argument | Explanation                                            | Required |
| -------- | ------------------------------------------------------ | -------- |
| userID   | The ID of the user that you want to remove infractions | Required |

## Edit the reason infractions :

You can edit the reason of the infraction by using the following command :&#x20;

`!infractions edit [infID] [newReason]`

| Arguments | Explanation                                                              | Required |
| --------- | ------------------------------------------------------------------------ | -------- |
| infID     | The ID of the infraction (more information [above](#infraction-command)) | Required |
| newReason | The new reason of the infraction                                         | Required |

## Edit the duration of an infraction :&#x20;

You can edit the timing of an infraction (tempban or tempmute) by using the following command :&#x20;

`!infractions time [infID] [newDuration]`

| Arguments   | Explanation                                                              | Required |
| ----------- | ------------------------------------------------------------------------ | -------- |
| infID       | The ID of the infraction (more information [above](#infraction-command)) | Required |
| newDuration | The new duration                                                         | Required |

## Moderator infractions :&#x20;

{% hint style="info" %}
`You can use mod aliase. As a consequence, the command !infractions mod [moderatorID] or !inf mod [moderatorID] will be executed.`
{% endhint %}

You can see all of the infractions given by a moderator by using the following command :&#x20;

`!infractions moderator [moderatorID]`

| Argument    |                                                                     |          |
| ----------- | ------------------------------------------------------------------- | -------- |
| moderatorID | The ID of the moderator that you want to see the given infractions. | Required |
