From 42d116fb9571c6dd55d24e900e969ed9e64ed8e3 Mon Sep 17 00:00:00 2001 From: wookie184 Date: Tue, 11 Jun 2024 18:45:26 +0000 Subject: Deploying to docs from @ python-discord/bot-core@61ff0350396238879b45b5b01f75c06fb9778a4a 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/pydis_core.utils.checks.html | 14 +++++++------- 1 file changed, 7 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 1e431c34..7ef66e28 100644 --- a/main/output/pydis_core.utils.checks.html +++ b/main/output/pydis_core.utils.checks.html @@ -393,26 +393,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.

@@ -438,7 +438,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.

@@ -459,7 +459,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.

@@ -480,7 +480,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