Skip to content

Commit

Permalink
fixed custom command author
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Dec 4, 2024
1 parent 729a183 commit 17c4f90
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,13 @@ async def interpret_embed(bot, ctx, channel, embed: dict, ics_id: int):
try:
embed.title = await sub_vars(bot, ctx, channel, embed.title)
except AttributeError:
pass
try:
embed.set_author(name=await sub_vars(bot, ctx, channel, embed.author.name))
except AttributeError:
pass
pass

if str(var := await sub_vars(bot, ctx, channel, embed.author.name) != "None:
try:
embed.set_author(name=await sub_vars(bot, ctx, channel, embed.author.name))
except AttributeError:
pass
try:
embed.description = await sub_vars(bot, ctx, channel, embed.description)
except AttributeError:
Expand Down

0 comments on commit 17c4f90

Please sign in to comment.