fix: fixed parse statement not returning a timedelta

This commit is contained in:
Seaswimmer 2023-08-08 01:29:01 -04:00
parent adc7ae4545
commit 9959d402b3
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -93,7 +93,7 @@ class Shortmute(commands.Cog):
reason = self.passed_info['reason'] reason = self.passed_info['reason']
old_interaction = self.passed_info['interaction'] old_interaction = self.passed_info['interaction']
color = self.passed_info['color'] 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) 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'): if self.passed_info.get('evidence'):
evidence = self.passed_info['evidence'] evidence = self.passed_info['evidence']