fix(aurora): fixed a SyntaxError in changes_factory
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 40s

This commit is contained in:
Seaswimmer 2024-08-19 17:41:41 -04:00
parent ec082b58ad
commit 9be187e4aa
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -264,8 +264,8 @@ async def changes_factory(interaction: Interaction, moderation: Moderation) -> E
end_timestamp = f"<t:{change.end_timestamp}> | <t:{change.end_timestamp}:R>" if change.end_timestamp else None
change_str = [
f"{bold("User:")} {inline(user.name)} ({user.id})",
f"{bold("Reason:")} {change.reason}" if change.reason else "",
f"{bold('User:')} {inline(user.name)} ({user.id})",
f"{bold('Reason:')} {change.reason}" if change.reason else "",
f"{bold('Duration:')} {humanize_timedelta(timedelta=change.duration)}" if change.duration else "",
f"{bold('End Timestamp:')} {end_timestamp}" if end_timestamp else "",
f"{bold("Timestamp:")} {timestamp}",