diff options
| author | 2020-09-27 09:23:59 +0300 | |
|---|---|---|
| committer | 2020-09-27 09:23:59 +0300 | |
| commit | 7e006192d9e8569c614e7466def59682b228c00c (patch) | |
| tree | b6297e1fdc516a6fcf778056b62203710ca8f351 | |
| parent | PR #1151 Sync: remove confirmation (diff) | |
Help: Add handling of disabled commands to avoid DisabledCommand error
| -rw-r--r-- | bot/exts/info/help.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/help.py b/bot/exts/info/help.py index 99d503f5c..5d83f8f86 100644 --- a/bot/exts/info/help.py +++ b/bot/exts/info/help.py @@ -174,7 +174,7 @@ class CustomHelpCommand(HelpCommand): command_details += f"**Can also use:** {aliases}\n\n" # check if the user is allowed to run this command - if not await command.can_run(self.context): + if not command.enabled or not await command.can_run(self.context): command_details += "***You cannot run this command.***\n\n" command_details += f"*{command.help or 'No details provided.'}*\n" |