aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-20 09:40:26 +0300
committerGravatar ks129 <[email protected]>2020-05-20 09:40:26 +0300
commit6d0a1b0c9e3f278f2b660659efd89db3c4a3595a (patch)
treefc46b81055f50ebf160c3e889db045dce4dbdae4
parentSource: Implement no argument GitHub repo response (diff)
Source: Fix `Cog` instance of source no `help` attribute
-rw-r--r--bot/cogs/source.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/source.py b/bot/cogs/source.py
index 22b75e2ee..1820392f3 100644
--- a/bot/cogs/source.py
+++ b/bot/cogs/source.py
@@ -84,9 +84,12 @@ class Source(Cog):
if isinstance(source_object, HelpCommand):
title = "Help"
description = source_object.__doc__
- else:
+ elif isinstance(source_object, Command):
title = source_object.qualified_name
description = source_object.help
+ else:
+ title = source_object.qualified_name
+ description = source_object.description
embed = Embed(title=title, description=description, url=link)
embed.add_field(name="Source Code", value=f"[Go to GitHub]({link})")