From 71f3738849202cd6cb2ce82287f5af1ac0550077 Mon Sep 17 00:00:00 2001 From: xBelladonna Date: Fri, 12 Apr 2019 23:57:25 +0930 Subject: [PATCH] Oops pt. 1 --- src/pluralkit/bot/commands/misc_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/misc_commands.py b/src/pluralkit/bot/commands/misc_commands.py index ab484f26..2b6caa7f 100644 --- a/src/pluralkit/bot/commands/misc_commands.py +++ b/src/pluralkit/bot/commands/misc_commands.py @@ -18,7 +18,8 @@ def make_command_embed(command): embed = make_footer_embed() embed.title = prefix + command["usage"] embed.description = (command["description"] + "\n" + command.get("longdesc", "")).strip() - embed.add_field(name="Aliases" if len(command["aliases"]) > 1 else "Alias", value="\n".join([prefix + cmd for cmd in command["aliases"]]), inline=False) + if "aliases" in command: + embed.add_field(name="Aliases" if len(command["aliases"]) > 1 else "Alias", value="\n".join([prefix + cmd for cmd in command["aliases"]]), inline=False) embed.add_field(name="Usage", value=prefix + command["usage"], inline=False) if "examples" in command: embed.add_field(name="Examples" if len(command["examples"]) > 1 else "Example", value="\n".join([prefix + cmd for cmd in command["examples"]]), inline=False)