fix(moderation): fixed tempbans not passing the duration argument properly
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
This commit is contained in:
parent
aca705d073
commit
f455b7bf7a
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class Moderation(commands.Cog):
|
||||||
return
|
return
|
||||||
await interaction.response.send_message(content=f"{target.mention} has been banned for {humanize.precisedelta(parsed_time)}!\n**Reason** - `{reason}`")
|
await interaction.response.send_message(content=f"{target.mention} has been banned for {humanize.precisedelta(parsed_time)}!\n**Reason** - `{reason}`")
|
||||||
try:
|
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)
|
await target.send(embed=embed)
|
||||||
except discord.errors.HTTPException:
|
except discord.errors.HTTPException:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue