diff options
| author | khazhyk <[email protected]> | 2016-12-03 12:58:49 -0800 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-12-16 14:39:25 -0500 |
| commit | b1117262da87adc238ed13c076815264786e5045 (patch) | |
| tree | f9199416eb3aaca3e838ff9453aac9989f1f38d8 /discord/ext | |
| parent | Fix typo in wait_for_reaction documentation. (diff) | |
| download | discord.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.py | 2 |
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 |