aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-27 13:38:34 -0400
committerGravatar GitHub <[email protected]>2019-09-27 13:38:34 -0400
commit6409846e5d6164a60623a9540258bc7d80253412 (patch)
tree090c13ba3448411e1494e730ae169bbb0d15995b
parentUse Command.cog_name attr instead of missing instance attr (diff)
Apply suggestions from code review
Co-Authored-By: Mark <[email protected]>
-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 352ea63ce..37d12b2d5 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.cog_name,
+ name=cog.qualified_name,
description=inspect.getdoc(cog),
- commands=[c for c in self._bot.commands if c.cog_name == cog.cog_name]
+ commands=[c for c in self._bot.commands if c.cog is cog]
)
self._handle_not_found(query)