From 7c86d862cfa239a980e893283273a9491b7aa251 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 19 Aug 2024 17:52:18 -0400 Subject: [PATCH] fix(aurora): fixed a TypeError --- aurora/utilities/factory.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aurora/utilities/factory.py b/aurora/utilities/factory.py index 039e252..c5222d5 100644 --- a/aurora/utilities/factory.py +++ b/aurora/utilities/factory.py @@ -265,13 +265,13 @@ async def changes_factory(interaction: Interaction, moderation: Moderation) -> E change_str = [ f"{bold('User:')} {inline(user.name)} ({user.id})", - f"{bold('Reason:')} {change.reason}" if change.reason else None, - f"{bold('Duration:')} {humanize_timedelta(timedelta=change.duration)}" if change.duration else None, - f"{bold('End Timestamp:')} {end_timestamp}" if end_timestamp else None, + 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}", ] for string in change_str: - if string is None: + if string == "": change_str.remove(string) embed.add_field(