forked from blizzthewolf/SeaCogs
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':
|
if change['type'] == 'RESOLVE':
|
||||||
resolved_by = change['staff']
|
resolved_by = change['staff']
|
||||||
resolved_reason = change['reason']
|
resolved_reason = change['reason']
|
||||||
resolve_timestamp = change['timestamp'] / 1000
|
resolved_timestamp = change['timestamp'] / 1000
|
||||||
break
|
break
|
||||||
if resolved_by is None:
|
if resolved_by is None:
|
||||||
resolved_by = '?'
|
resolved_by = '?'
|
||||||
if resolved_reason is None:
|
if resolved_reason is None:
|
||||||
resolved_reason = 'Could not get resolve reason during moderation import.'
|
resolved_reason = 'Could not get resolve reason during moderation import.'
|
||||||
if resolve_timestamp is None:
|
if resolved_timestamp is None:
|
||||||
resolve_timestamp = timestamp
|
resolved_timestamp = timestamp
|
||||||
changes = [
|
changes = [
|
||||||
{
|
{
|
||||||
'type': "ORIGINAL",
|
'type': "ORIGINAL",
|
||||||
|
@ -1750,7 +1750,7 @@ class Moderation(commands.Cog):
|
||||||
'type': "RESOLVE",
|
'type': "RESOLVE",
|
||||||
'reason': resolved_reason,
|
'reason': resolved_reason,
|
||||||
'user_id': resolved_by,
|
'user_id': resolved_by,
|
||||||
'timestamp': resolve_timestamp
|
'timestamp': resolved_timestamp
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue