[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:
parent
51fda76555
commit
b1117262da
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user