[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.
This commit is contained in:
1 parent
51fda76555
commit
b1117262da
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user