aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/help.py b/bot/cogs/help.py
index 4971cd0bb..352ea63ce 100644
--- a/bot/cogs/help.py
+++ b/bot/cogs/help.py
@@ -110,9 +110,9 @@ class HelpSession:
cog = self._bot.cogs.get(query)
if cog:
return Cog(
- name=cog.__class__.__name__,
+ name=cog.cog_name,
description=inspect.getdoc(cog),
- commands=[c for c in self._bot.commands if c.instance is cog]
+ commands=[c for c in self._bot.commands if c.cog_name == cog.cog_name]
)
self._handle_not_found(query)