Skip to content

Commit

Permalink
Merge pull request #3201 from Cordila/patch-2
Browse files Browse the repository at this point in the history
Fix for `logs` command. GH#3200
  • Loading branch information
Taaku18 authored Oct 15, 2022
2 parents 14ac193 + ec52cc2 commit 8ceb786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def format_log_embeds(self, logs, avatar_url):
if entry["recipient"]["id"] != entry["creator"]["id"]:
embed.add_field(name="Created by", value=f"<@{entry['creator']['id']}>")

if entry["title"]:
if entry.get("title"):
embed.add_field(name="Title", value=entry["title"], inline=False)

embed.add_field(name="Preview", value=format_preview(entry["messages"]), inline=False)
Expand Down

0 comments on commit 8ceb786

Please sign in to comment.