aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-31 12:16:26 +0300
committerGravatar ks129 <[email protected]>2020-05-31 12:16:26 +0300
commit30510d6cfd877e5441022b8a8d893871fbf2a0a9 (patch)
tree49747a13222f3e331f23e0e914f922786fab8af3
parentSource: Simplify imports (diff)
Source: Show aliases on title of command source embed
-rw-r--r--bot/cogs/source.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/source.py b/bot/cogs/source.py
index 5668ab6c6..8fd8cbed4 100644
--- a/bot/cogs/source.py
+++ b/bot/cogs/source.py
@@ -103,7 +103,8 @@ class BotSource(commands.Cog):
else:
description = source_object.short_doc
- title = f"Command: {source_object.qualified_name}"
+ aliases_string = f" (or {', '.join(source_object.aliases)})" if source_object.aliases else ""
+ title = f"Command: {source_object.qualified_name}{aliases_string}"
elif isinstance(source_object, str):
title = f"Tag: {source_object.split('/')[-1].split('.')[0]}"
description = ""