From 723ffffde7de470359640a62c9a37a9db3939870 Mon Sep 17 00:00:00 2001 From: jb3 Date: Sun, 10 Aug 2025 21:32:36 +0000 Subject: Deploying to docs from @ python-discord/bot-core@0da291ca7e92893f5a05ed282248a68edcbbfa06 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/pydis_core.utils.checks.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'main/output/pydis_core.utils.checks.html') diff --git a/main/output/pydis_core.utils.checks.html b/main/output/pydis_core.utils.checks.html index db73a782..efe1d806 100644 --- a/main/output/pydis_core.utils.checks.html +++ b/main/output/pydis_core.utils.checks.html @@ -330,6 +330,10 @@ v9.0.0 +
  • + v11.7.0 +
  • +
  • v11.6.1
  • @@ -475,26 +479,26 @@

    checks¶

    -exception ContextCheckFailure(redirect_channel)[source]¶
    +exception ContextCheckFailure(redirect_channel)[source]¶

    Bases: CheckFailure

    Raised when a context-specific check fails.

    -__init__(redirect_channel)[source]¶
    +__init__(redirect_channel)[source]¶
    -exception InWhitelistCheckFailure(redirect_channel)[source]¶
    +exception InWhitelistCheckFailure(redirect_channel)[source]¶

    Bases: ContextCheckFailure

    Raised when the in_whitelist check fails.

    -cooldown_with_role_bypass(rate, per, type_=('default', 0), *, bypass_roles)[source]¶
    +cooldown_with_role_bypass(rate, per, type_=('default', 0), *, bypass_roles)[source]¶

    Decorate a command to have a cooldown, which can be bypassed by users with specified roles.

    Note: This replaces the Command.before_invoke callback, which might introduce problems in the future.

    @@ -520,7 +524,7 @@
    -async has_any_role_check(ctx, *roles)[source]¶
    +async has_any_role_check(ctx, *roles)[source]¶

    Verify if the context’s author has any of the specified roles.

    This check will always fail if the context is a DM, since DMs don’t have roles.

    @@ -541,7 +545,7 @@
    -async has_no_roles_check(ctx, *roles)[source]¶
    +async has_no_roles_check(ctx, *roles)[source]¶

    Verify if the context’s author doesn’t have any of the specified roles.

    This check will always fail if the context is a DM, since DMs don’t have roles.

    @@ -562,7 +566,7 @@
    -in_whitelist_check(ctx, redirect, channels=(), categories=(), roles=(), *, fail_silently=False)[source]¶
    +in_whitelist_check(ctx, redirect, channels=(), categories=(), roles=(), *, fail_silently=False)[source]¶

    Check if a command was issued in a context that is whitelisted by channel, category, or roles.

    Parameters:
    -- cgit v1.2.3