fix(aurora): fixed a typeerror in /edit
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 40s

This commit is contained in:
Seaswimmer 2024-08-14 15:57:53 -04:00
parent 4a4f24bb8f
commit ec508a92e3
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -46,7 +46,7 @@ class Aurora(commands.Cog):
This cog stores all of its data in an SQLite database.""" This cog stores all of its data in an SQLite database."""
__author__ = ["Seaswimmer"] __author__ = ["Seaswimmer"]
__version__ = "3.0.0-indev17" __version__ = "3.0.0-indev18"
__documentation__ = "https://seacogs.coastalcommits.com/aurora/" __documentation__ = "https://seacogs.coastalcommits.com/aurora/"
async def red_delete_data_for_user(self, *, requester, user_id: int): async def red_delete_data_for_user(self, *, requester, user_id: int):
@ -1052,7 +1052,7 @@ class Aurora(commands.Cog):
error("Please provide a valid duration!"), ephemeral=True error("Please provide a valid duration!"), ephemeral=True
) )
moderation.end_timestamp = moderation.timestamp + moderation.duration.total_seconds() moderation.end_timestamp = moderation.timestamp + timedelta(seconds=moderation.duration.total_seconds())
try: try:
success = await moderation.type.duration_edit_handler(interaction=interaction.client, old_moderation=old_moderation, new_moderation=moderation) success = await moderation.type.duration_edit_handler(interaction=interaction.client, old_moderation=old_moderation, new_moderation=moderation)