diff options
author | 2022-09-19 00:37:45 +0200 | |
---|---|---|
committer | 2022-09-19 00:37:45 +0200 | |
commit | 824d1ebfd7b1b26df10d5712ad7b7b033007e43e (patch) | |
tree | 12e8cffa16aeafb4eb725ffae5bdfc93f1390d8b /botcore/utils/cooldown.py | |
parent | use paramspec from typing (diff) |
use a clearer name
Diffstat (limited to 'botcore/utils/cooldown.py')
-rw-r--r-- | botcore/utils/cooldown.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py index 5fb974e2..817f6947 100644 --- a/botcore/utils/cooldown.py +++ b/botcore/utils/cooldown.py @@ -61,7 +61,7 @@ class CommandOnCooldown(CommandError, typing.Generic[P, R]): @dataclass class _CooldownItem: - arguments: _ArgsList + non_hashable_arguments: _ArgsList timeout_timestamp: float @@ -117,7 +117,7 @@ class _CommandCooldownManager: ) for item in cooldowns_list: - if item.arguments == separated_arguments.non_hashable: + if item.non_hashable_arguments == separated_arguments.non_hashable: item.timeout_timestamp = timeout_timestamp return @@ -136,7 +136,7 @@ class _CommandCooldownManager: return False for item in cooldowns_list: - if item.arguments == separated_arguments.non_hashable: + if item.non_hashable_arguments == separated_arguments.non_hashable: return item.timeout_timestamp > current_time return False |