aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/help.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/exts/info/help.py b/bot/exts/info/help.py
index 599c5d5c0..5e0651f8a 100644
--- a/bot/exts/info/help.py
+++ b/bot/exts/info/help.py
@@ -173,8 +173,11 @@ class CustomHelpCommand(HelpCommand):
if aliases:
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):
+ # when command is disabled, show message about it
+ # otherwise check if the user is allowed to run this command
+ if not command.enabled:
+ command_details += "***This command is disabled.***\n\n"
+ elif 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"