The bot says “Invalid duration”: how do I fix my command?

TroubleshootingDurationCommands

Message received: “❌ Invalid duration. Valid examples: 10m, 1h, 7d, 7d 8h 2m 60s (s, m, h, d/j, w)”.

What you wroteProblemWrite instead
1h30The unit of the “30” is missing.1h30m
30A number alone has no unit.30m
7d abcExtra text: everything must be readable.7d
0mA zero duration is rejected.10m
5000dBeyond 3,650 days (10 years).For a permanent ban, use /ban.
1 semaineValid! “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: Troubleshooting

Last checked: 13 November 2026.