aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
authorkhazhyk <[email protected]>2016-12-03 12:58:49 -0800
committerRapptz <[email protected]>2016-12-16 14:39:25 -0500
commitb1117262da87adc238ed13c076815264786e5045 (patch)
treef9199416eb3aaca3e838ff9453aac9989f1f38d8 /discord/ext
parentFix typo in wait_for_reaction documentation. (diff)
downloaddiscord.py-b1117262da87adc238ed13c076815264786e5045.tar.xz
discord.py-b1117262da87adc238ed13c076815264786e5045.zip
[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.
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/commands/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py
index 7440e1de..0b12df51 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