fix(moderation): + instead of -
Some checks failed
Pylint / Pylint (push) Failing after 1m13s

This commit is contained in:
Seaswimmer 2023-10-04 12:23:14 -04:00
parent 189a6f82ab
commit bfaad63920
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -76,7 +76,7 @@ class Moderation(commands.Cog):
elif entry.action == discord.AuditLogAction.member_update:
if entry.after.timed_out_until is not None:
timed_out_until_aware = entry.after.timed_out_until.replace(tzinfo=timezone.utc)
duration_datetime = datetime.now(tz=timezone.utc) - timed_out_until_aware
duration_datetime = datetime.now(tz=timezone.utc) + timed_out_until_aware
minutes = round(duration_datetime.total_seconds() / 60)
duration = timedelta(minutes=minutes)
moderation_type = 'TIMEOUT'