/unwarn
Remove an active warning from a user. Deactivates a single WARN case (a specific case number, or the most recent active warning) and creates an UNWARN case recording the reversal.
Required Permission
Both the user executing the command and the bot must have the Moderate Members permission.
Options
| Option | Required | Description |
|---|---|---|
user | Yes | The user whose warning should be removed. |
case | No | The specific case number to remove. If omitted, the most recent active warning for the user is removed. |
reason | No | Reason for removing the warning. Defaults to "No reason provided" if omitted. |
Behavior
- Warning selection -- If a
casenumber is provided, that WARN case is targeted; otherwise the user's most recent active warning is used. - Case deactivation -- The selected WARN case is marked as inactive. Unlike
/unbanand/untimeout(which lift every active case of their type),/unwarnremoves exactly one warning per run. - Case creation -- An UNWARN case is created, referencing the removed warning as its parent case.
- Remaining count -- The response reports how many active warnings the user still has.
- Mod log -- If a mod log channel is configured, the bot posts a formatted embed with the details.
Notes
- To remove several specific warnings, run the command once per case number. There is no bulk "remove all warnings" option.
- Deactivated warnings remain in the case history with an inactive status; nothing is deleted.
- The bot's response to this command is ephemeral - only visible to the moderator who ran it.