The bot says “Invalid duration”: how do I fix my command?
Message received: “❌ Invalid duration. Valid examples: 10m, 1h, 7d, 7d 8h 2m 60s (s, m, h, d/j, w)”.
| What you wrote | Problem | Write instead |
|---|---|---|
1h30 | The unit of the “30” is missing. | 1h30m |
30 | A number alone has no unit. | 30m |
7d abc | Extra text: everything must be readable. | 7d |
0m | A zero duration is rejected. | 10m |
5000d | Beyond 3,650 days (10 years). | For a permanent ban, use /ban. |
1 semaine | Valid! “semaine”, “sem”, “w” are accepted. | — |
The full list of units is in the article on duration formats. For /purge since and /purge before, the error message suggests 30s, 10m, 2h, 3j, 1w.
Still stuck?
Contact support with the title of this article, the step where you are stuck and what you see on screen.
Contact support More articles: TroubleshootingLast checked: 13 November 2026.