fix(moderation): fixed variable name

This commit is contained in:
Seaswimmer 2023-12-15 21:58:25 -05:00
parent 2adf7ed811
commit 26225d3774
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1731,14 +1731,14 @@ class Moderation(commands.Cog):
if change['type'] == 'RESOLVE':
resolved_by = change['staff']
resolved_reason = change['reason']
resolve_timestamp = change['timestamp'] / 1000
resolved_timestamp = change['timestamp'] / 1000
break
if resolved_by is None:
resolved_by = '?'
if resolved_reason is None:
resolved_reason = 'Could not get resolve reason during moderation import.'
if resolve_timestamp is None:
resolve_timestamp = timestamp
if resolved_timestamp is None:
resolved_timestamp = timestamp
changes = [
{
'type': "ORIGINAL",
@ -1750,7 +1750,7 @@ class Moderation(commands.Cog):
'type': "RESOLVE",
'reason': resolved_reason,
'user_id': resolved_by,
'timestamp': resolve_timestamp
'timestamp': resolved_timestamp
}
]
else: