fix: removed useless argument

This commit is contained in:
Seaswimmer 2023-08-08 01:48:24 -04:00
parent a03b9cac9a
commit 06878eebb2
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -86,7 +86,7 @@ class Shortmute(commands.Cog):
edit_embed = discord.Embed(title="Shortmute confirmed!", description=f"**Moderator:** {interaction.user.mention}\n**Target:** {target.mention}\n**Duration:** {readable_duration}\n**Reason:** `{reason}`", color=await self.bot.get_embed_color(None))
if evidence:
edit_embed.set_image(url=evidence)
message = await interaction.response.send_message(embed=edit_embed, view=None)
message = await interaction.response.send_message(embed=edit_embed, ephemeral=True)
await target.timeout(timedelta, reason=f"User shortmuted for {readable_duration} by {interaction.user.name} ({interaction.user.id}) for: {reason}")
await interaction.channel.send(content=f"{target.mention} was shortmuted for {readable_duration} by {interaction.user.mention} for: `{reason}`")
if await self.config.guild(interaction.guild).dm() is True: