From cf16350107a4ffd6a48d258a47fffc0733c138b2 Mon Sep 17 00:00:00 2001 From: jb3 Date: Fri, 17 Oct 2025 18:04:11 +0000 Subject: Deploying to docs from @ python-discord/bot-core@9f0162c0869ee8e0ae158636c8f0eac96159a675 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v11.0.1/output/pydis_core.utils.cooldown.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'v11.0.1/output/pydis_core.utils.cooldown.html') diff --git a/v11.0.1/output/pydis_core.utils.cooldown.html b/v11.0.1/output/pydis_core.utils.cooldown.html index 38a77850..46b18995 100644 --- a/v11.0.1/output/pydis_core.utils.cooldown.html +++ b/v11.0.1/output/pydis_core.utils.cooldown.html @@ -10,8 +10,8 @@ - + @@ -481,7 +481,7 @@
exception CommandOnCooldown(message, function, /, *args, **kwargs)[source]¶
-

Bases: CommandError, Generic[P, R]

+

Bases: CommandError, Generic[P, R]

Raised when a command is invoked while on cooldown.

@@ -494,7 +494,7 @@

Run the command this cooldown blocked.

Return type:
-

TypeVar(R)

+

TypeVar(R)

Returns:

The command’s return value.

@@ -524,14 +524,14 @@
Parameters:
    -
  • cooldown_duration (float) – Length of the cooldown in seconds.

  • -
  • send_notice (bool) – If True, notify the user about the cooldown with a reply.

  • -
  • args_preprocessor (Callable[[ParamSpec(P)], Iterable[object]] | None) – If specified, this function is called with the args and kwargs the function is called with, +

  • cooldown_duration (float) – Length of the cooldown in seconds.

  • +
  • send_notice (bool) – If True, notify the user about the cooldown with a reply.

  • +
  • args_preprocessor (Callable[[ParamSpec(P)], Iterable[object]] | None) – If specified, this function is called with the args and kwargs the function is called with, its return value is then used to check for the cooldown instead of the raw arguments.

Return type:
-

Callable[[Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]], Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]]

+

Callable[[Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]], Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]]

Returns:

A decorator that adds a wrapper which applies the cooldowns.

-- cgit v1.2.3