WIP: Refactor Aurora (3.0.0) #29
1 changed files with 8 additions and 0 deletions
|
@ -127,6 +127,10 @@ async def log_factory(
|
|||
+ f"\n**Duration:** {duration_embed}\n**Expired:** {moderation.expired}"
|
||||
)
|
||||
|
||||
if moderation.metadata.items():
|
||||
for key, value in moderation.metadata.items():
|
||||
embed.description += f"\n**{key.title()}:** {value}"
|
||||
|
||||
embed.add_field(name="Reason", value=box(moderation.reason), inline=False)
|
||||
|
||||
embed.add_field(
|
||||
|
@ -148,6 +152,10 @@ async def log_factory(
|
|||
+ f"\n**Duration:** {humanize_timedelta(timedelta=moderation.duration)} | <t:{moderation.unix_timestamp}:R>"
|
||||
)
|
||||
|
||||
if moderation.metadata.items():
|
||||
for key, value in moderation.metadata.items():
|
||||
embed.description += f"\n**{key.title()}:** {value}"
|
||||
|
||||
embed.add_field(name="Reason", value=box(moderation.reason), inline=False)
|
||||
return embed
|
||||
|
||||
|
|
Loading…
Reference in a new issue