From 123f054e5490c0b789f70a7a9efcc6b55a8c61fa Mon Sep 17 00:00:00 2001 From: Numerlor Date: Tue, 27 Sep 2022 23:30:53 +0200 Subject: make function and message positional only to free up names for kwargs --- botcore/utils/cooldown.py | 1 + 1 file changed, 1 insertion(+) (limited to 'botcore/utils/cooldown.py') 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, ): -- cgit v1.2.3