aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-26 21:14:59 -0400
committerGravatar S. Co1 <[email protected]>2019-09-26 21:38:21 -0400
commitd3d0672612ef96de8ebaf8bd16f2862d1f0ffae9 (patch)
treebfaea8b36151db5e242aaa5da2f7351fe0d81936
parentFix incorrect kwargs in watchchannel modlog send (diff)
Use Command.cog_name attr instead of missing instance attr
-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)