From 4497a82c504818d61ab18c5251ae2bc42bae279e Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Sat, 23 Nov 2024 18:47:50 +0000 Subject: Deploying to docs from @ python-discord/bot-core@bdaaa2e76d4cb32843754757532ef8d73ac97761 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v10.0.0/output/pydis_core.utils.cooldown.html | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'v10.0.0/output/pydis_core.utils.cooldown.html') diff --git a/v10.0.0/output/pydis_core.utils.cooldown.html b/v10.0.0/output/pydis_core.utils.cooldown.html index 216c39d5..94fc8c7d 100644 --- a/v10.0.0/output/pydis_core.utils.cooldown.html +++ b/v10.0.0/output/pydis_core.utils.cooldown.html @@ -5,13 +5,13 @@ - + cooldown - Pydis Core v10.0.0 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,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.

    @@ -459,7 +467,7 @@

    Run the command this cooldown blocked.

    Return type:
    -

    TypeVar(R)

    +

    TypeVar(R)

    Returns:

    The command’s return value.

    @@ -489,14 +497,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.

    @@ -586,7 +594,7 @@ its return value is then used to check for the cooldown instead of the raw argum - + -- cgit v1.2.3