From ee7b64cc78f93ec1649fdf5907d912de69dc3574 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 17 Dec 2023 13:00:43 -0500 Subject: [PATCH] fix(moderation): fixed importing reasons --- moderation/moderation.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index f0328ed..422cc22 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1475,6 +1475,11 @@ class Moderation(commands.Cog): resolved_reason = 'NULL' changes = [] + if case['reason']: + reason = case['reason'] + else: + reason = "NULL" + await mysql_log( self.ctx.guild.id, case['executor'], @@ -1483,7 +1488,7 @@ class Moderation(commands.Cog): case['target'], 0, duration, - case['reason'], + reason, timestamp=timestamp, resolved=resolved, resolved_by=resolved_by,