fix(moderation): fixed importing reasons

This commit is contained in:
Seaswimmer 2023-12-17 13:00:43 -05:00
parent e74923c357
commit ee7b64cc78
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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,