From 7e006192d9e8569c614e7466def59682b228c00c Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sun, 27 Sep 2020 09:23:59 +0300 Subject: Help: Add handling of disabled commands to avoid DisabledCommand error --- bot/exts/info/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3