diff options
| author | 2021-09-08 00:18:23 +0300 | |
|---|---|---|
| committer | 2021-09-08 00:18:23 +0300 | |
| commit | e33b4aad936ac052695a45f62bd986d13f2163b0 (patch) | |
| tree | 7c32c9b8dc8843cb3b5ab0350635ff0dc375a27d | |
| parent | Fix delete order (diff) | |
Switch `users` and `traverse` in main command
When providing a user ID it would clash with `traverse` which came first.
| -rw-r--r-- | bot/exts/moderation/clean.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index c90aff256..5f97aae22 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -420,8 +420,8 @@ class Clean(Cog): async def clean_group( self, ctx: Context, - traverse: Optional[int] = None, users: Greedy[User] = None, + traverse: Optional[int] = None, first_limit: Optional[CleanLimit] = None, second_limit: Optional[CleanLimit] = None, use_cache: Optional[bool] = None, @@ -434,8 +434,8 @@ class Clean(Cog): Commands for cleaning messages in channels. If arguments are provided, will act as a master command from which all subcommands can be derived. - • `traverse`: The number of messages to look at in each channel. • `users`: A series of user mentions, ID's, or names. + • `traverse`: The number of messages to look at in each channel. • `first_limit` and `second_limit`: A message, a duration delta, or an ISO datetime. If a message is provided, cleaning will happen in that channel, and channels cannot be provided. If a limit is provided, multiple channels cannot be provided. |