fix(moderation): fixed tempbans not passing the duration argument properly
All checks were successful
Pylint / Pylint (push) Successful in 1m13s

This commit is contained in:
SeaswimmerTheFsh 2023-10-05 11:11:18 -04:00
parent aca705d073
commit f455b7bf7a
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 5019678FD9CF50D8

View file

@ -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