aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ibrahim <[email protected]>2023-02-23 16:05:37 +0530
committerGravatar Ibrahim <[email protected]>2023-02-23 16:05:37 +0530
commitdabf67d92620cf0772e8443b5be57207280544c9 (patch)
tree3aa4d5137c7a3bd1c926977ba38f6e9e3e10a07c
parentImplement all reviews (diff)
Upadte docstring for `ErrorHandler()._can_run`
-rw-r--r--bot/exts/backend/error_handler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py
index 6561f84e4..839d882de 100644
--- a/bot/exts/backend/error_handler.py
+++ b/bot/exts/backend/error_handler.py
@@ -27,7 +27,8 @@ class ErrorHandler(Cog):
"""
Add checks for the `get_command_ctx` function here.
- Use discord.utils to run the checks.
+ The command code style is copied from discord.ext.commands.Command.can_run itself.
+ Append checks in the checks list.
"""
checks = []
predicates = checks