aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar F4zii <[email protected]>2020-02-22 19:49:22 +0200
committerGravatar MarkKoz <[email protected]>2020-02-22 19:49:22 +0200
commit5a6a5b6eef7d67901181b569b4cc5b298e06d807 (patch)
tree6046045bf07d05215f99b6bd89c4a7a905a94c6e
parentHandling CommandError and Optimization (diff)
awaited can_run Coroutine
-rw-r--r--bot/cogs/error_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py
index 687eee9c7..4b08546cc 100644
--- a/bot/cogs/error_handler.py
+++ b/bot/cogs/error_handler.py
@@ -108,7 +108,7 @@ class ErrorHandler(Cog):
log_msg = "Cancelling attempt to suggest a command due to failed checks."
try:
- if not similar_command.can_run(ctx):
+ if not await similar_command.can_run(ctx):
log.debug(log_msg)
return
except CommandError as cmd_error: