fix(moderation): fixed importing reasons
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 48s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 48s
This commit is contained in:
parent
e74923c357
commit
ee7b64cc78
1 changed files with 6 additions and 1 deletions
|
@ -1475,6 +1475,11 @@ class Moderation(commands.Cog):
|
||||||
resolved_reason = 'NULL'
|
resolved_reason = 'NULL'
|
||||||
changes = []
|
changes = []
|
||||||
|
|
||||||
|
if case['reason']:
|
||||||
|
reason = case['reason']
|
||||||
|
else:
|
||||||
|
reason = "NULL"
|
||||||
|
|
||||||
await mysql_log(
|
await mysql_log(
|
||||||
self.ctx.guild.id,
|
self.ctx.guild.id,
|
||||||
case['executor'],
|
case['executor'],
|
||||||
|
@ -1483,7 +1488,7 @@ class Moderation(commands.Cog):
|
||||||
case['target'],
|
case['target'],
|
||||||
0,
|
0,
|
||||||
duration,
|
duration,
|
||||||
case['reason'],
|
reason,
|
||||||
timestamp=timestamp,
|
timestamp=timestamp,
|
||||||
resolved=resolved,
|
resolved=resolved,
|
||||||
resolved_by=resolved_by,
|
resolved_by=resolved_by,
|
||||||
|
|
Loading…
Reference in a new issue