From fb2b3037bd80865e65a0005948d0f8e613b681f9 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 01:37:45 -0400 Subject: [PATCH] fix: error messages not sending because of not calling the method properly --- shortmute/shortmute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: