From b1117262da87adc238ed13c076815264786e5045 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Sat, 3 Dec 2016 12:58:49 -0800 Subject: [PATCH] [commands] Run global checks in help formatter. Help formatter was not checking global bot-level checks, resulting in showing commands a user did not have permission for with show_check_failure disabled. --- discord/ext/commands/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py index 7440e1de0..0b12df511 100644 --- a/discord/ext/commands/formatter.py +++ b/discord/ext/commands/formatter.py @@ -252,7 +252,7 @@ class HelpFormatter: return True try: - return cmd.can_run(self.context) + return cmd.can_run(self.context) and self.context.bot.can_run(self.context) except CommandError: return False