fix(seautils): fixed empty answer section
This commit is contained in:
parent
cb6ddabb4d
commit
7f46d6accc
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class SeaUtils(commands.Cog):
|
||||||
else:
|
else:
|
||||||
embed.add_field(name="Answer Section", value=f"{cf.box(answer_section)}", inline=False)
|
embed.add_field(name="Answer Section", value=f"{cf.box(answer_section)}", inline=False)
|
||||||
|
|
||||||
if authorities:
|
if not len(authorities) == 0:
|
||||||
authority_section = "\n".join(authorities)
|
authority_section = "\n".join(authorities)
|
||||||
embed.add_field(name="Authority Section", value=f"{cf.box(authority_section)}", inline=False)
|
embed.add_field(name="Authority Section", value=f"{cf.box(authority_section)}", inline=False)
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
Loading…
Reference in a new issue