Skip to content

Commit

Permalink
don't add empty default field
Browse files Browse the repository at this point in the history
  • Loading branch information
karlsbjorn committed Aug 10, 2023
1 parent d65bf24 commit 990f5e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions wowtools/cvardocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ async def create_cvar_embed(self, interaction: discord.Interaction, cvar) -> dis
default = _("Yes")
else:
default = cvar.default
embed.add_field(
name=_("Default"),
value=default,
inline=False,
)
if default:
embed.add_field(
name=_("Default"),
value=default,
inline=False,
)
if cvar.category:
embed.add_field(name=_("Category"), value=cvar.category)
if cvar.scope:
Expand Down

0 comments on commit 990f5e5

Please sign in to comment.