From 536853b00e96d2975f38dedc0f21435581c60ff8 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 12 Jan 2018 15:50:06 -0600 Subject: [PATCH] Ensure there are aliases before adding them --- cogs/tutorial.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cogs/tutorial.py b/cogs/tutorial.py index 75d3e05..39d2c71 100644 --- a/cogs/tutorial.py +++ b/cogs/tutorial.py @@ -60,11 +60,12 @@ class Tutorial: gif = None # Add a field for the aliases - embed.add_field( - name="Aliases", - value="\n".join(["\t{}".format(alias) for alias in command.aliases]), - inline=False - ) + if command.aliases: + embed.add_field( + name="Aliases", + value="\n".join(["\t{}".format(alias) for alias in command.aliases]), + inline=False + ) # Add any paramaters needed if command.clean_params: required_params = [x for x in command.clean_params if "=" not in x]