fix(moderation): fixed variable name
This commit is contained in:
parent
2adf7ed811
commit
26225d3774
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue