fix: removed positional argument from timeout
This commit is contained in:
parent
7b671851a2
commit
adc7ae4545
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class Shortmute(commands.Cog):
|
||||||
evidence = self.passed_info['evidence']
|
evidence = self.passed_info['evidence']
|
||||||
edit_embed.set_image(url=evidence)
|
edit_embed.set_image(url=evidence)
|
||||||
old_message = await old_interaction.edit_original_response(embed=edit_embed, view=None)
|
old_message = await old_interaction.edit_original_response(embed=edit_embed, view=None)
|
||||||
await target.timeout(until=timedelta, reason=f"User shortmuted for {readable_duration} by {old_interaction.user.name} ({old_interaction.user.id}) for: {reason}")
|
await target.timeout(timedelta, reason=f"User shortmuted for {readable_duration} by {old_interaction.user.name} ({old_interaction.user.id}) for: {reason}")
|
||||||
await interaction.channel.send(content=f"{target.mention} shortmuted for {readable_duration} by {old_interaction.user.mention} for: `{reason}`")
|
await interaction.channel.send(content=f"{target.mention} shortmuted for {readable_duration} by {old_interaction.user.mention} for: `{reason}`")
|
||||||
if await self.config.guild(old_interaction.guild).dm() is True:
|
if await self.config.guild(old_interaction.guild).dm() is True:
|
||||||
dm_embed = discord.Embed(title=f"You've been shortmuted in {old_interaction.guild.name}!", description=f"Moderator: {old_interaction.user.mention}\nTarget: {target.mention}\nDuration: {readable_duration}\nReason: `{reason}`", color=color)
|
dm_embed = discord.Embed(title=f"You've been shortmuted in {old_interaction.guild.name}!", description=f"Moderator: {old_interaction.user.mention}\nTarget: {target.mention}\nDuration: {readable_duration}\nReason: `{reason}`", color=color)
|
||||||
|
|
Loading…
Reference in a new issue