fix: fixed parse statement not returning a timedelta
This commit is contained in:
parent
adc7ae4545
commit
9959d402b3
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Shortmute(commands.Cog):
|
|||
reason = self.passed_info['reason']
|
||||
old_interaction = self.passed_info['interaction']
|
||||
color = self.passed_info['color']
|
||||
timedelta = parse(f'{duration} minutes')
|
||||
timedelta = parse(f'{duration} minutes', as_timedelta=True)
|
||||
edit_embed = discord.Embed(title="Shortmute confirmed!", description=f"Moderator: {old_interaction.user.mention}\nTarget: {target.mention}\nDuration: {readable_duration}\nReason: `{reason}`", color=color)
|
||||
if self.passed_info.get('evidence'):
|
||||
evidence = self.passed_info['evidence']
|
||||
|
|
Loading…
Reference in a new issue