From 566608de2482d0db3939941c0b7aa38b8dec9c50 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 30 Dec 2023 04:04:31 -0500 Subject: [PATCH] fix(aurora): fixed KeyError in `/edit` command --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 270ee46..4bef46a 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -864,7 +864,7 @@ class Aurora(commands.Cog): end_timestamp = case_dict['timestamp'] + parsed_time.total_seconds() - if case_dict['type'] == 'MUTE': + if case_dict['moderation_type'] == 'MUTE': if (time.time() - case_dict['timestamp']) + parsed_time.total_seconds() > 2419200: await interaction.response.send_message("Please provide a duration that is less than 28 days from the initial moderation.") return