Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreusada committed Jun 1, 2023
1 parent 8cb1f3c commit 873718a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embedcreator/embedcreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ async def get_python(self, interaction: discord.Interaction, button: discord.ui.
if embed.author:
attrs = {}
for attr in ["name", "url", "icon_url"]:
if (gattr := getattr(embed.author, attr)) :
if gattr := getattr(embed.author, attr):
attrs[attr] = gattr
text += (
f"embed.set_author(" + ", ".join(f"{k}={v!r}" for k, v in attrs.items()) + ")\n"
Expand All @@ -487,7 +487,7 @@ async def get_python(self, interaction: discord.Interaction, button: discord.ui.
if embed.footer:
attrs = {}
for attr in ["text", "icon_url"]:
if (gattr := getattr(embed.footer, attr)) :
if gattr := getattr(embed.footer, attr):
attrs[attr] = gattr
text += (
f"embed.set_footer(" + ", ".join(f"{k}={v!r}" for k, v in attrs.items()) + ")\n"
Expand Down

0 comments on commit 873718a

Please sign in to comment.