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

# modinf

Changes the reason or the duration (or both) of an infraction.

### Usage

\<prefix> modinf \<infraction id> \[reason] \[duration]

### Examples

\<prefix> modinf ww5f4l spam 2h -> The reason of the provided infraction will be changed to spam, and if it was a mute, tempban or ban, its duration will be changed to 2h.

\<prefix> modinf q1bnsf 5d -> The duration of the provided infraction will be changed to 5d.

\<prefix> modinf fgrx89 flood -> The reason of the provided infraction will be changed to flood.

### Necessary permissions

MANAGE\_MESSAGES or moderator role
