fix(aurora): fixed a typeerror in Moderation.log()
This commit is contained in:
parent
0411e3dab7
commit
51d3245703
1 changed files with 4 additions and 1 deletions
|
@ -251,7 +251,10 @@ class Moderation(AuroraGuildModel):
|
||||||
end_timestamp = None
|
end_timestamp = None
|
||||||
|
|
||||||
if not expired:
|
if not expired:
|
||||||
|
if end_timestamp:
|
||||||
expired = bool(timestamp > end_timestamp)
|
expired = bool(timestamp > end_timestamp)
|
||||||
|
else:
|
||||||
|
expired = False
|
||||||
|
|
||||||
if reason == "NULL":
|
if reason == "NULL":
|
||||||
reason = None
|
reason = None
|
||||||
|
|
Loading…
Reference in a new issue