From 834d116b2035dfa2a1f116d8c9f0defe65db7ddd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 6 May 2024 15:32:01 -0400 Subject: [PATCH] fix(aurora): fixed a syntax error --- aurora/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aurora/models.py b/aurora/models.py index 2ad8de2..6c37bd5 100644 --- a/aurora/models.py +++ b/aurora/models.py @@ -96,7 +96,7 @@ class Moderation(AuroraGuildModel): member = await guild.fetch_member(self.target_id) await member.timeout( - None, reason=f"Case {self.moderation_id} resolved by {resolved_by}{" for" + reason if reason else ""}" + None, reason=f"Case {self.moderation_id} resolved by {resolved_by}{' for '+ reason if reason else ''}" ) except NotFound: pass @@ -104,7 +104,7 @@ class Moderation(AuroraGuildModel): if self.type in ["BAN", "TEMPBAN"]: try: guild: discord.Guild = await self.bot.fetch_guild(self.guild_id) - await guild.unban(await self.get_target(), reason=f"Case {self.moderation_id} resolved by {resolved_by}{" for" + reason if reason else ""}") + await guild.unban(await self.get_target(), reason=f"Case {self.moderation_id} resolved by {resolved_by}{' for '+ reason if reason else ''}") except NotFound: pass