diff options
| author | 2022-06-12 19:53:04 +0300 | |
|---|---|---|
| committer | 2022-06-12 19:53:04 +0300 | |
| commit | 154cd0457aaa703a000da8d0d21642578496de78 (patch) | |
| tree | 7650c68d9342a37753de467b005c6c684a69a6c4 | |
| parent | Add user purging command (diff) | |
Clarify age is exclusive in `purge` docstring
| -rw-r--r-- | bot/exts/moderation/clean.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index 5a3481067..4b65a1338 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -621,7 +621,11 @@ class Clean(Cog): @command() async def purge(self, ctx: Context, users: Greedy[User], age: Optional[Union[Age, ISODateTime]] = None) -> None: - """Clean messages of users from all public channels up to a certain message age (10 minutes by default).""" + """ + Clean messages of users from all public channels up to a certain message age (10 minutes by default). + + The age is *exclusive*, meaning that `10s` won't delete a message exactly 10 seconds old. + """ if age is None: age = await Age().convert(ctx, "10M") await self._clean_messages(ctx, channels="*", users=users, first_limit=age) |