aboutsummaryrefslogtreecommitdiffstats
path: root/botcore/utils/cooldown.py
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2022-09-27 23:30:53 +0200
committerGravatar Numerlor <[email protected]>2022-09-27 23:30:53 +0200
commit123f054e5490c0b789f70a7a9efcc6b55a8c61fa (patch)
tree75a9525b6bdcc8124e0746c7272a5cf3ee1fd488 /botcore/utils/cooldown.py
parentallow user specified function to manipulate cooldown args (diff)
make function and message positional only to free up names for kwargs
Diffstat (limited to 'botcore/utils/cooldown.py')
-rw-r--r--botcore/utils/cooldown.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py
index 31505ace..015734d2 100644
--- a/botcore/utils/cooldown.py
+++ b/botcore/utils/cooldown.py
@@ -41,6 +41,7 @@ class CommandOnCooldown(CommandError, typing.Generic[P, R]):
self,
message: str | None,
function: Callable[P, Awaitable[R]],
+ /,
*args: P.args,
**kwargs: P.kwargs,
):