fix(aurora): fixed /edit
command not setting the moderation's duration properly
This commit is contained in:
parent
5cd0ef61cb
commit
3e484e1ae5
1 changed files with 1 additions and 1 deletions
|
@ -1050,7 +1050,7 @@ class Aurora(commands.Cog):
|
|||
parsed_time = parse_relativedelta(argument=duration)
|
||||
if parsed_time is None:
|
||||
raise commands.BadArgument()
|
||||
parsed_time = timedelta_from_relativedelta(relativedelta=parsed_time)
|
||||
moderation.duration = timedelta_from_relativedelta(relativedelta=parsed_time)
|
||||
except (commands.BadArgument, ValueError):
|
||||
return await interaction.response.send_message(
|
||||
error("Please provide a valid duration!"), ephemeral=True
|
||||
|
|
Loading…
Reference in a new issue