fix(aurora): fixed KeyError in /edit command
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 41s

This commit is contained in:
Seaswimmer 2023-12-30 04:04:31 -05:00
parent 285f36d6af
commit 566608de24
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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