diff --git a/moderation/utilities/embed_factory.py b/moderation/utilities/embed_factory.py index a99802e..7e77b2b 100644 --- a/moderation/utilities/embed_factory.py +++ b/moderation/utilities/embed_factory.py @@ -138,7 +138,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact content = f"{codeblock}prolog\nCase: {case_dict['moderation_id']:,} ({str.title(case_dict['moderation_type'])})\nTarget: {target_name} ({target_user['id']})\nModerator: {moderator_name} ({moderator_user['id']})" if case_dict['duration'] != 'NULL': - content += f"Duration: {humanize.precisedelta(td)}" + content += f"Duration: {humanize.precisedelta(case_dict['duration'])}" content += f"\nReason: {case_dict['reason']}{codeblock}"