diff options
| author | 2021-10-25 22:35:12 +0300 | |
|---|---|---|
| committer | 2021-10-25 22:35:12 +0300 | |
| commit | d19824d76c0cbe793b387002bcf1c6932579a668 (patch) | |
| tree | e46f20d33b0a0f0ee8efd26c384215096adc95a9 | |
| parent | Update Age converter to use TZ aware datetime (diff) | |
Remove channel limitation with time range
Discussion in the pull request raised some legitimate use cases for supplying a time range for multiple channels (e.g clean the last couple of minutes instead of specifying number of messages to traverse).
| -rw-r--r-- | bot/exts/moderation/clean.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index 9001b4fe2..94494b983 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -99,9 +99,6 @@ class Clean(Cog): if traverse > CleanMessages.message_limit: raise BadArgument(f"Cannot traverse more than {CleanMessages.message_limit} messages.") - if first_limit and channels and (channels == "*" or len(channels) > 1): - raise BadArgument("Message or time range specified across multiple channels.") - if (isinstance(first_limit, Message) or isinstance(second_limit, Message)) and channels: raise BadArgument("Both a message limit and channels specified.") |