[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:
		| @@ -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