Every moderation action SudoBot takes — whether triggered by a command or by an auto-moderation rule — creates an infraction record in the database. Infractions give your moderation team a permanent, searchable audit trail so you can review a member’s history, update records when context changes, and ensure consistent enforcement.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/onesoft-sudo/sudobot/llms.txt
Use this file to discover all available pages before exploring further.
What creates an infraction
The following actions automatically generate an infraction:| Action | Infraction type |
|---|---|
ban | BAN |
| Temp-ban (ban with duration) | TEMP_BAN |
unban | UNBAN |
kick | KICK |
mute (Discord timeout) | MUTE |
unmute | UNMUTE |
warn | WARNING |
note | NOTE |
bean | BEAN |
shot | SHOT |
Mass ban (massban) | MASS_BAN |
Mass kick (masskick) | MASS_KICK |
| Auto-moderation actions | Varies by action type |
infraction create — for example, to document an action that was taken outside of the bot.
Viewing infractions
View a single infraction
Use the numeric infraction ID shown when the action was taken, or find it via The bot replies with a detailed embed showing the type, target user, moderator, reason, timestamp, and duration (if applicable).
infraction list:List all infractions for a user
infraction ls.Editing infractions
You can update the reason or duration of an existing infraction without deleting and re-creating it.- Update reason
- Update duration
42. The change is logged but does not resend any DM to the user.Deleting infractions
/infraction d 42
Creating infractions manually
Useinfraction create to add a record without taking a live moderation action. This is useful for documenting warnings that were issued verbally or through another channel.
duration (for record-keeping only) and choose whether to notify the user via DM.
Clearing all infractions for a user
Infraction command reference
The root command isinfraction (aliases: inf, infs, infractions). The required Discord permissions are Manage Messages or View Audit Log (either one is sufficient).
| Subcommand | Alias | Description |
|---|---|---|
infraction create | — | Manually create a new infraction record. |
infraction view <id> | — | Show full details for one infraction. |
infraction list <user> | ls | List all infractions for a user. |
infraction delete <id> | d | Permanently delete one infraction. |
infraction reason <id> <reason> | — | Change the reason on an infraction. |
infraction duration <id> <duration> | — | Update the recorded duration. |
infraction clear <user> | — | Delete all infractions for a user. |
infraction attachment <id> | viewfile, file | View an attached file on an infraction. |
The
infraction command also accepts the shorter aliases s (summary) for listing and ls as a shorthand for list. These aliases are mapped to the same underlying handler as the full subcommand names.