From f455b7bf7a1338a09d0ada2d1e009f8d6f962e74 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 11:11:18 -0400 Subject: [PATCH] fix(moderation): fixed tempbans not passing the duration argument properly --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 451ce8d..0deece9 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -313,7 +313,7 @@ class Moderation(commands.Cog): return await interaction.response.send_message(content=f"{target.mention} has been banned for {humanize.precisedelta(parsed_time)}!\n**Reason** - `{reason}`") try: - embed = await self.embed_factory('message', interaction.guild, reason, 'tempbanned', await interaction.original_response()) + embed = await self.embed_factory('message', interaction.guild, reason, 'tempbanned', await interaction.original_response(), parsed_time) await target.send(embed=embed) except discord.errors.HTTPException: pass