From 824d1ebfd7b1b26df10d5712ad7b7b033007e43e Mon Sep 17 00:00:00 2001 From: Numerlor Date: Mon, 19 Sep 2022 00:37:45 +0200 Subject: use a clearer name --- botcore/utils/cooldown.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'botcore') 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 -- cgit v1.2.3