/timeout
Apply a timeout to a user, temporarily restricting them from sending messages, reacting, or joining voice channels. Creates a moderation case with duration tracking and logs the action.
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 timeout. |
duration | No | How long the timeout should last. Accepts duration strings such as 5m, 1h, 6h, 1d, 7d, or combinations like 1d12h. |
reason | No | Reason for the timeout. Supports autocomplete with preset reasons. If the selected preset has a duration configured, that duration is used automatically. |
evidence | No | A screenshot or file attachment to store with the case as evidence. |
silent | No | If set to true, the bot will not send a DM to the user. Defaults to false. |
Duration Autocomplete Suggestions
When you begin typing in the duration field, the bot suggests these common durations:
| Suggestion | Duration |
|---|---|
| 5 minutes | 5m |
| 30 minutes | 30m |
| 1 hour | 1h |
| 6 hours | 6h |
| 12 hours | 12h |
| 1 day | 1d |
| 3 days | 3d |
| 7 days | 7d |
| 14 days | 14d |
| 28 days | 28d |
Duration Resolution
The timeout duration can come from two sources:
- Explicit
durationoption -- A duration string provided directly in the command. - Preset reason duration -- If the selected preset reason has an associated duration, it is used automatically.
If an explicit duration is provided, it takes precedence over any preset duration. If neither source provides a duration, the command returns a helpful error message explaining that a duration is required.
Duration Limits
- Minimum: 1 minute
- Maximum: 28 days (this is a Discord platform limit)
Behavior
- Duration validation -- The bot parses and validates the duration, ensuring it falls within the 1 minute to 28 day range.
- DM notification -- Unless
silentis enabled, the bot sends a direct message to the target user with the server name, timeout reason, duration, and a clickable Appeal button (if the appeals system is enabled). The content and appearance of this DM are controlled by the DM_MUTE message template and can be customized per guild. - Discord timeout -- The bot applies the timeout through the Discord API. The user will be unable to send messages, add reactions, or connect to voice channels for the specified duration.
- Case creation -- A case record is created with the action type TIMEOUT, including the duration and an expiry timestamp calculated from the current time plus the duration.
- Mod log -- If a mod log channel is configured, the bot posts a formatted embed with the full timeout details including the expiry time.
Notes
- Discord automatically lifts the timeout when the duration expires. No further bot action is needed.
- The expiry field on the case record reflects when the timeout will end, making it easy to see at a glance in the dashboard.
- If the target user has a role higher than or equal to the bot's highest role, the timeout will fail due to Discord's role hierarchy enforcement.
- 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.