diff --git a/shortmute/shortmute.py b/shortmute/shortmute.py index 65b0438..c6e9fab 100644 --- a/shortmute/shortmute.py +++ b/shortmute/shortmute.py @@ -64,10 +64,10 @@ class Shortmute(commands.Cog): "readable_duration": readable_duration }) if duration > 30: - await interaction.response(content=f"{readable_duration} is longer than the 30 minutes you are allowed to shortmute users for.", ephemeral=True) + await interaction.response.send_message(content=f"{readable_duration} is longer than the 30 minutes you are allowed to shortmute users for.", ephemeral=True) return elif duration < 1: - await interaction.response(content=f"Please shortmute the user for longer than {readable_duration}! The maximum duration is 30 minutes.", ephemeral=True) + await interaction.response.send_message(content=f"Please shortmute the user for longer than {readable_duration}! The maximum duration is 30 minutes.", ephemeral=True) return embed = discord.Embed(title="Are you sure?", 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: