diff options
| author | 2020-05-31 12:16:26 +0300 | |
|---|---|---|
| committer | 2020-05-31 12:16:26 +0300 | |
| commit | 30510d6cfd877e5441022b8a8d893871fbf2a0a9 (patch) | |
| tree | 49747a13222f3e331f23e0e914f922786fab8af3 | |
| parent | Source: Simplify imports (diff) | |
Source: Show aliases on title of command source embed
| -rw-r--r-- | bot/cogs/source.py | 3 |
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 = "" |