fix(aurora): fixed KeyError in /edit
command
This commit is contained in:
parent
285f36d6af
commit
566608de24
1 changed files with 1 additions and 1 deletions
|
@ -864,7 +864,7 @@ class Aurora(commands.Cog):
|
||||||
|
|
||||||
end_timestamp = case_dict['timestamp'] + parsed_time.total_seconds()
|
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:
|
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.")
|
await interaction.response.send_message("Please provide a duration that is less than 28 days from the initial moderation.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue