1
0
Fork 0
mirror of synced 2024-05-05 13:12:34 +12:00

Ensure there are aliases before adding them

This commit is contained in:
Phxntxm 2018-01-12 15:50:06 -06:00
parent f942852813
commit 536853b00e

View file

@ -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]