From 9959d402b3d70fd91c375beea58e747d63179b4a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 01:29:01 -0400 Subject: [PATCH] fix: fixed parse statement not returning a timedelta --- shortmute/shortmute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortmute/shortmute.py b/shortmute/shortmute.py index 31385da..d1ddbb2 100644 --- a/shortmute/shortmute.py +++ b/shortmute/shortmute.py @@ -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']