[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:
khazhyk 2016-12-03 12:58:49 -08:00 committed by Rapptz
parent 51fda76555
commit b1117262da

View File

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