/warn
Issue a warning to a user. Warnings are tracked as moderation cases and the user receives a DM with their cumulative warning count. Warnings do not impose any Discord-level restriction on the user.
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 to warn. |
reason | No | Reason for the warning. Supports autocomplete with preset reasons filtered to the WARN action type. |
evidence | No | A screenshot or file attachment to store with the case as evidence. |
note
The /warn command does not have a silent option. Warnings always send a DM to the user, since the primary purpose of a warning is to notify the user of the issue.
Behavior
- Warning count -- The bot counts all existing WARN cases for the target user in the current server.
- Case creation -- A case record is created with the action type WARN, including the target user, moderator, reason, and evidence.
- DM notification -- The bot sends a direct message to the user informing them of the warning. The DM includes the warning count with an ordinal suffix (e.g., "This is your 1st warning", "This is your 2nd warning", "This is your 3rd warning"). The content and appearance of this DM are controlled by the DM_WARN message template and can be customized per guild.
- Mod log -- If a mod log channel is configured, the bot posts a formatted embed with the warning details.
Notes
- Warnings are informational only. Unlike bans, kicks, or timeouts, a warning does not impose any restriction on the user within Discord. Warnings serve as a formal record that the user has been notified of a rule violation.
- Warning counts are per-server. A user's warning count in one server is independent of their warnings in other servers.
- Use warnings for escalation paths. Many moderation teams use warning counts as thresholds for escalation. For example, a third warning might lead to a timeout, and a fifth might result in a ban. This is up to your team to enforce manually.
- If the user has DMs disabled, the warning case is still created and logged. The bot will note that the DM could not be delivered.
- The bot's response to this command is ephemeral - only visible to the moderator who ran it.
- If public filter notifications are enabled for manual mod actions, a brief notice is posted in the channel and auto-deleted after the configured duration.