diff options
Diffstat (limited to '')
| -rw-r--r-- | botcore/utils/cooldown.py | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py index 817f6947..28ad8795 100644 --- a/botcore/utils/cooldown.py +++ b/botcore/utils/cooldown.py @@ -129,12 +129,9 @@ class _CommandCooldownManager:          separated_arguments = _SeparatedArguments.from_full_arguments(call_arguments)          cooldowns_list = self._cooldowns.get(              (channel, separated_arguments.hashable), -            None +            [],          ) -        if cooldowns_list is None: -            return False -          for item in cooldowns_list:              if item.non_hashable_arguments == separated_arguments.non_hashable:                  return item.timeout_timestamp > current_time  |