diff options
| author | 2021-07-28 17:22:24 +0100 | |
|---|---|---|
| committer | 2021-07-28 17:22:32 +0100 | |
| commit | 770528c70ff38b739c963c88b89ec6401d687d16 (patch) | |
| tree | 4f32e22bcd337117eb90ce38f907266fbbbfb676 | |
| parent | Return empty containers if clean is cancelled (diff) | |
simplify range predicate for clean command
| -rw-r--r-- | bot/exts/utils/clean.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/clean.py b/bot/exts/utils/clean.py index 3aabe42f7..847ac5c86 100644 --- a/bot/exts/utils/clean.py +++ b/bot/exts/utils/clean.py @@ -164,7 +164,7 @@ class Clean(Cog): def predicate_range(message: Message) -> bool: """Check if message is older than message provided in after_message but younger than until_message.""" - return message.created_at >= after_message.created_at and message.created_at <= until_message.created_at + return after_message.created_at <= message.created_at <= until_message.created_at # Is this an acceptable amount of messages to clean? if amount > CleanMessages.message_limit: |