From 8cbe9d94cfac81c92a12431c2e450440c81abe61 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Wed, 14 Aug 2024 15:59:09 -0400 Subject: [PATCH] fix(aurora): pass `interaction` instead of `interaction.client` to the `duration_edit_handler` --- aurora/aurora.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index ae695de..5b9d8f9 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -46,7 +46,7 @@ class Aurora(commands.Cog): This cog stores all of its data in an SQLite database.""" __author__ = ["Seaswimmer"] - __version__ = "3.0.0-indev18" + __version__ = "3.0.0-indev19" __documentation__ = "https://seacogs.coastalcommits.com/aurora/" async def red_delete_data_for_user(self, *, requester, user_id: int): @@ -1055,7 +1055,7 @@ class Aurora(commands.Cog): moderation.end_timestamp = moderation.timestamp + timedelta(seconds=moderation.duration.total_seconds()) 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, old_moderation=old_moderation, new_moderation=moderation) except NotImplementedError: return await interaction.response.send_message( error("This case type does not support duration editing!"), ephemeral=True