Skip to content

Commit

Permalink
Fix for /edit command adding "[Empty]" content
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanC committed Mar 2, 2025
1 parent da9d067 commit 55a7f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ async def CommandEdit(

return

await msg.edit(msg.content, attachment=file, embeds=await EmbedsFromJSON(embeds))

before: str = "[Empty]"
after: str = "[Empty]"

Expand All @@ -282,8 +284,6 @@ async def CommandEdit(
if msg.content:
before = msg.content

await msg.edit(after, attachment=file, embeds=await EmbedsFromJSON(embeds))

await ctx.respond(
flags=MessageFlag.EPHEMERAL,
embed=Response(
Expand Down

0 comments on commit 55a7f8b

Please sign in to comment.