From 4036cd19685a320c4b586257073bbe58187ff82b Mon Sep 17 00:00:00 2001 From: TropiiDev Date: Sun, 16 Mar 2025 19:45:13 -0400 Subject: [PATCH] Fixed whisper command --- commands/whisper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/whisper.py b/commands/whisper.py index 4c7381c..17075a0 100644 --- a/commands/whisper.py +++ b/commands/whisper.py @@ -12,7 +12,9 @@ class Whisper(commands.Cog): @app_commands.command(name="whisper", description="secretly send someone a message") async def whisper(self, interaction: discord.Interaction, user: discord.User, message: str): - await interaction.response.send_message(f"{user.mention}, {interaction.user.mention} whispered '{message}'", ephemeral=True) + await interaction.response.send_message("Sending message..", ephemeral=True) + await user.send(f"{interaction.user.mention} has whispered '{message}'") + await interaction.followup.send("Message sent", ephemeral=True) async def setup(bot): await bot.add_cog(Whisper(bot)) \ No newline at end of file