diff options
author | 2022-09-27 23:30:53 +0200 | |
---|---|---|
committer | 2022-09-27 23:30:53 +0200 | |
commit | 123f054e5490c0b789f70a7a9efcc6b55a8c61fa (patch) | |
tree | 75a9525b6bdcc8124e0746c7272a5cf3ee1fd488 | |
parent | allow user specified function to manipulate cooldown args (diff) |
make function and message positional only to free up names for kwargs
-rw-r--r-- | botcore/utils/cooldown.py | 1 |
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, ): |